home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file contrib/amiga/, mode 755 , uid 10003 , gid 10003 , size 0 , seconds 5311652302
| default
| |
98%
| file
| data
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 00 00 |contrib/|amiga/..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 31 30 30 |.... 7|55 . 100|
|00000070| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 33 31 31 36 35 32 | 0 | 5311652|
|00000090| 33 30 32 20 20 20 36 36 | 34 33 00 20 00 00 00 00 |302 66|43. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00000210| 69 67 61 44 69 66 66 73 | 2e 74 78 74 00 00 00 00 |igaDiffs|.txt....|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00000270| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00000280| 20 20 20 35 33 35 33 20 | 20 35 32 30 31 35 33 35 | 5353 | 5201535|
|00000290| 36 31 34 20 20 31 31 34 | 37 35 00 20 00 00 00 00 |614 114|75. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 48 65 72 65 20 61 72 65 | 20 73 6f 6d 65 20 63 6c |Here are| some cl|
|00000410| 61 72 69 66 69 63 61 74 | 69 6f 6e 73 20 66 6f 72 |arificat|ions for|
|00000420| 20 74 68 65 20 41 6d 69 | 67 61 20 73 6f 75 72 63 | the Ami|ga sourc|
|00000430| 65 20 63 6f 64 65 20 64 | 69 66 66 73 2e 0a 4c 69 |e code d|iffs..Li|
|00000440| 6e 65 20 6e 75 6d 62 65 | 72 73 20 72 65 66 65 72 |ne numbe|rs refer|
|00000450| 20 74 6f 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c | to the |original|
|00000460| 20 6d 65 74 61 6d 61 69 | 6c 20 76 65 72 73 69 6f | metamai|l versio|
|00000470| 6e 20 32 2e 32 20 64 69 | 73 74 72 69 62 75 74 69 |n 2.2 di|stributi|
|00000480| 6f 6e 2e 0a 0a 31 29 20 | 6d 61 69 6c 74 6f 2e 63 |on...1) |mailto.c|
|00000490| 20 6c 69 6e 65 20 34 37 | 3a 20 69 6e 63 6c 75 64 | line 47|: includ|
|000004a0| 65 20 66 69 6c 65 73 20 | 66 72 6f 6d 20 44 69 6c |e files |from Dil|
|000004b0| 6c 6f 6e 20 41 6d 69 67 | 61 20 55 55 43 50 2d 31 |lon Amig|a UUCP-1|
|000004c0| 2e 31 35 44 2e 20 54 68 | 69 73 20 6c 69 62 72 61 |.15D. Th|is libra|
|000004d0| 72 79 0a 20 20 20 70 72 | 6f 76 69 64 65 20 66 75 |ry. pr|ovide fu|
|000004e0| 6e 63 74 69 6f 6e 73 20 | 74 68 61 74 20 72 65 74 |nctions |that ret|
|000004f0| 72 69 65 76 65 20 63 6f | 6e 66 69 67 75 72 61 74 |rieve co|nfigurat|
|00000500| 69 6f 6e 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ion info|rmation |
|00000510| 69 6e 20 61 20 73 74 61 | 6e 64 61 72 64 0a 20 20 |in a sta|ndard. |
|00000520| 20 77 61 79 2e 0a 0a 32 | 29 20 6d 61 69 6c 74 6f | way...2|) mailto|
|00000530| 2e 63 20 6c 69 6e 65 20 | 35 34 3a 20 74 68 65 20 |.c line |54: the |
|00000540| 63 6f 6d 70 69 6c 65 72 | 20 49 20 75 73 65 20 28 |compiler| I use (|
|00000550| 44 49 43 45 29 20 70 72 | 6f 76 69 64 65 73 20 41 |DICE) pr|ovides A|
|00000560| 4e 53 49 20 43 20 68 65 | 61 64 65 72 20 66 69 6c |NSI C he|ader fil|
|00000570| 65 73 2e 0a 20 20 20 54 | 48 65 20 63 6f 6d 70 69 |es.. T|He compi|
|00000580| 6c 65 72 20 68 61 73 20 | 61 6c 72 65 61 64 79 20 |ler has |already |
|00000590| 65 6e 63 6f 75 6e 74 65 | 72 65 64 20 61 6e 20 41 |encounte|red an A|
|000005a0| 4e 53 49 20 43 20 64 65 | 63 6c 61 72 61 74 69 6f |NSI C de|claratio|
|000005b0| 6e 20 6f 66 20 67 65 74 | 65 6e 76 28 29 2e 0a 0a |n of get|env()...|
|000005c0| 33 29 20 6d 61 69 6c 74 | 6f 2e 63 20 6c 69 6e 65 |3) mailt|o.c line|
|000005d0| 20 37 31 3a 20 22 43 43 | 3a 20 76 65 72 73 75 73 | 71: "CC|: versus|
|000005e0| 20 43 63 3a 22 20 72 66 | 63 2d 38 32 32 20 61 70 | Cc:" rf|c-822 ap|
|000005f0| 70 65 61 72 73 20 74 6f | 20 73 61 79 20 74 68 61 |pears to| say tha|
|00000600| 74 20 63 61 73 65 20 64 | 6f 65 73 0a 20 20 20 6e |t case d|oes. n|
|00000610| 6f 74 20 6d 61 74 74 65 | 72 2e 20 55 6e 66 6f 72 |ot matte|r. Unfor|
|00000620| 74 75 6e 61 74 65 6c 79 | 2c 20 61 20 63 6f 6d 6d |tunately|, a comm|
|00000630| 6f 6e 20 6d 61 69 6c 20 | 73 65 6e 64 69 6e 67 20 |on mail |sending |
|00000640| 70 72 6f 67 72 61 6d 20 | 6f 6e 20 74 68 65 20 41 |program |on the A|
|00000650| 6d 69 67 61 20 6f 6e 6c | 79 0a 20 20 20 72 65 63 |miga onl|y. rec|
|00000660| 6f 67 6e 69 7a 65 73 20 | 22 43 63 3a 22 2e 20 49 |ognizes |"Cc:". I|
|00000670| 20 64 69 64 20 61 20 67 | 6c 6f 62 61 6c 20 72 65 | did a g|lobal re|
|00000680| 70 6c 61 63 65 20 22 43 | 43 22 20 2d 3e 20 22 43 |place "C|C" -> "C|
|00000690| 63 22 2c 20 77 68 69 63 | 68 20 77 61 73 0a 20 20 |c", whic|h was. |
|000006a0| 20 75 6e 6e 65 63 65 73 | 73 61 72 69 6c 79 20 68 | unneces|sarily h|
|000006b0| 65 61 76 79 68 61 6e 64 | 65 64 2e 20 49 74 20 69 |eavyhand|ed. It i|
|000006c0| 73 20 72 65 61 6c 6c 79 | 20 6f 6e 6c 79 20 6e 65 |s really| only ne|
|000006d0| 65 64 65 64 20 74 6f 20 | 64 6f 20 73 6f 6d 65 74 |eded to |do somet|
|000006e0| 68 69 6e 67 20 77 69 74 | 68 0a 20 20 20 74 68 65 |hing wit|h. the|
|000006f0| 20 73 74 72 69 6e 67 73 | 20 74 68 61 74 20 61 72 | strings| that ar|
|00000700| 65 20 61 63 74 75 61 6c | 6c 79 20 6f 75 74 70 75 |e actual|ly outpu|
|00000710| 74 2e 0a 0a 34 29 20 6d | 61 69 6c 74 6f 2e 63 20 |t...4) m|ailto.c |
|00000720| 6c 69 6e 65 20 32 31 34 | 3a 20 48 6f 6d 65 20 64 |line 214|: Home d|
|00000730| 69 72 65 63 74 6f 72 79 | 20 76 65 72 73 75 73 20 |irectory| versus |
|00000740| 55 55 4c 49 42 3a 20 61 | 6e 64 20 55 55 4d 41 49 |UULIB: a|nd UUMAI|
|00000750| 4c 3a 2e 20 54 68 65 20 | 41 6d 69 67 61 20 64 6f |L:. The |Amiga do|
|00000760| 65 73 0a 20 20 20 6e 6f | 74 20 68 61 76 65 20 61 |es. no|t have a|
|00000770| 20 73 74 61 6e 64 61 72 | 64 20 68 6f 6d 65 20 64 | standar|d home d|
|00000780| 69 72 65 63 74 6f 72 79 | 2e 20 54 68 65 20 73 79 |irectory|. The sy|
|00000790| 6d 62 6f 6c 69 63 20 70 | 61 74 68 73 20 55 55 4c |mbolic p|aths UUL|
|000007a0| 49 42 3a 20 61 6e 64 20 | 55 55 4d 41 49 4c 3a 0a |IB: and |UUMAIL:.|
|000007b0| 20 20 20 70 72 65 74 74 | 79 20 73 74 61 6e 64 61 | prett|y standa|
|000007c0| 72 64 20 61 6d 6f 6e 67 | 20 75 73 65 72 73 20 6f |rd among| users o|
|000007d0| 66 20 55 55 43 50 20 6f | 6e 20 74 68 65 20 41 6d |f UUCP o|n the Am|
|000007e0| 69 67 61 20 28 55 55 43 | 50 2d 70 61 63 6b 61 67 |iga (UUC|P-packag|
|000007f0| 65 73 20 74 65 6e 64 20 | 74 6f 0a 20 20 20 72 65 |es tend |to. re|
|00000800| 6c 79 20 6f 6e 20 74 68 | 65 69 72 20 65 78 69 73 |ly on th|eir exis|
|00000810| 74 65 6e 63 65 29 2e 0a | 0a 35 29 20 6d 61 69 6c |tence)..|.5) mail|
|00000820| 74 6f 2e 63 20 6c 69 6e | 65 20 32 31 34 3a 20 54 |to.c lin|e 214: T|
|00000830| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 73 |he name |of the s|
|00000840| 69 67 6e 61 74 75 72 65 | 20 66 69 6c 65 2e 20 49 |ignature| file. I|
|00000850| 20 71 75 69 63 6b 6c 79 | 20 64 69 73 63 6f 76 65 | quickly| discove|
|00000860| 72 65 64 20 74 68 61 74 | 0a 20 20 20 74 68 65 20 |red that|. the |
|00000870| 2e 73 69 67 6e 61 74 75 | 72 65 20 74 68 61 74 20 |.signatu|re that |
|00000880| 49 20 61 6d 20 75 73 69 | 6e 67 20 77 69 74 68 20 |I am usi|ng with |
|00000890| 72 65 67 75 6c 61 72 20 | 6d 61 69 6c 20 70 72 6f |regular |mail pro|
|000008a0| 67 72 61 6d 73 2c 20 64 | 6f 65 73 20 6e 6f 74 20 |grams, d|oes not |
|000008b0| 6c 6f 6f 6b 0a 20 20 20 | 70 72 65 74 74 79 2c 20 |look. |pretty, |
|000008c0| 6f 72 20 65 76 65 6e 20 | 72 65 61 64 61 62 6c 65 |or even |readable|
|000008d0| 2c 20 77 68 65 6e 20 76 | 69 65 77 65 64 20 61 73 |, when v|iewed as|
|000008e0| 20 72 69 63 68 74 65 78 | 74 2e 20 49 20 68 61 76 | richtex|t. I hav|
|000008f0| 65 20 74 68 65 72 65 66 | 6f 72 65 20 63 72 65 61 |e theref|ore crea|
|00000900| 74 65 64 0a 20 20 20 73 | 65 70 61 72 61 74 65 20 |ted. s|eparate |
|00000910| 73 69 67 6e 61 74 75 72 | 65 20 66 69 6c 65 73 20 |signatur|e files |
|00000920| 66 6f 72 20 75 73 65 20 | 77 69 74 68 20 6d 61 69 |for use |with mai|
|00000930| 6c 74 6f 2e 0a 0a 36 29 | 20 6d 61 69 6c 74 6f 2e |lto...6)| mailto.|
|00000940| 63 20 6c 69 6e 65 20 33 | 38 35 3a 20 41 20 73 68 |c line 3|85: A sh|
|00000950| 6f 72 74 63 6f 6d 69 6e | 67 20 77 69 74 68 20 74 |ortcomin|g with t|
|00000960| 68 65 20 41 6d 69 67 61 | 20 69 73 20 74 68 61 74 |he Amiga| is that|
|00000970| 20 69 74 20 6e 6f 72 6d | 61 6c 6c 79 20 68 61 73 | it norm|ally has|
|00000980| 20 61 0a 20 20 20 73 6d | 61 6c 6c 20 61 6e 64 20 | a. sm|all and |
|00000990| 66 69 78 65 64 20 73 69 | 7a 65 20 73 74 61 63 6b |fixed si|ze stack|
|000009a0| 20 28 74 68 65 20 73 69 | 7a 65 20 69 73 20 75 73 | (the si|ze is us|
|000009b0| 65 72 20 73 65 74 74 61 | 62 6c 65 2c 20 62 75 74 |er setta|ble, but|
|000009c0| 20 6f 6e 65 20 63 61 6e | 20 6e 6f 74 20 72 65 6c | one can| not rel|
|000009d0| 79 0a 20 20 20 6f 6e 20 | 74 68 61 74 20 69 74 20 |y. on |that it |
|000009e0| 69 73 20 62 69 67 67 65 | 72 20 74 68 61 6e 20 34 |is bigge|r than 4|
|000009f0| 20 6b 42 79 74 65 29 2e | 20 54 68 65 20 63 6f 6d | kByte).| The com|
|00000a00| 70 69 6c 65 72 20 49 20 | 75 73 65 20 63 61 6e 20 |piler I |use can |
|00000a10| 61 6c 6c 6f 63 61 74 65 | 20 73 74 61 63 6b 0a 20 |allocate| stack. |
|00000a20| 20 20 64 79 6e 61 6d 69 | 63 61 6c 6c 79 2c 20 74 | dynami|cally, t|
|00000a30| 68 72 6f 75 67 68 20 61 | 20 73 6f 66 74 77 61 72 |hrough a| softwar|
|00000a40| 65 20 73 63 68 65 6d 65 | 20 28 74 68 65 72 65 20 |e scheme| (there |
|00000a50| 69 73 20 6e 6f 20 4d 4d | 55 29 2e 20 54 68 69 73 |is no MM|U). This|
|00000a60| 20 73 63 68 65 6d 65 0a | 20 20 20 72 65 71 75 69 | scheme.| requi|
|00000a70| 72 65 73 20 74 68 61 74 | 20 6e 6f 20 70 72 6f 63 |res that| no proc|
|00000a80| 65 64 75 72 65 20 68 61 | 73 20 6d 6f 72 65 20 74 |edure ha|s more t|
|00000a90| 68 61 6e 20 61 62 6f 75 | 74 20 32 30 30 30 20 62 |han abou|t 2000 b|
|00000aa0| 79 74 65 73 20 6f 66 20 | 6c 6f 63 61 6c 20 76 61 |ytes of |local va|
|00000ab0| 72 69 61 62 6c 65 73 0a | 20 20 20 28 73 6c 69 67 |riables.| (slig|
|00000ac0| 68 74 6c 79 20 6c 65 73 | 73 20 61 63 74 75 61 6c |htly les|s actual|
|00000ad0| 6c 79 29 2e 0a 0a 20 20 | 20 54 6f 20 63 6f 6d 70 |ly)... | To comp|
|00000ae0| 6c 79 20 77 69 74 68 20 | 74 68 65 20 32 30 30 30 |ly with |the 2000|
|00000af0| 20 62 79 74 65 20 6c 69 | 6d 69 74 20 49 20 61 6c | byte li|mit I al|
|00000b00| 6c 6f 63 61 74 65 20 73 | 6f 6d 65 20 6c 6f 63 61 |locate s|ome loca|
|00000b10| 6c 20 61 72 72 61 79 73 | 20 77 69 74 68 0a 20 20 |l arrays| with. |
|00000b20| 20 6d 61 6c 6c 6f 63 28 | 29 20 72 61 74 68 65 72 | malloc(|) rather|
|00000b30| 20 74 68 61 6e 20 66 72 | 6f 6d 20 74 68 65 20 73 | than fr|om the s|
|00000b40| 74 61 63 6b 2e 0a 0a 37 | 29 20 6d 61 69 6c 74 6f |tack...7|) mailto|
|00000b50| 2e 63 20 6c 69 6e 65 20 | 34 34 35 3a 20 54 68 65 |.c line |445: The|
|00000b60| 20 41 6d 69 67 61 20 75 | 73 65 73 20 61 6e 20 69 | Amiga u|ses an i|
|00000b70| 73 6f 2d 38 38 35 39 20 | 63 68 61 72 61 63 74 65 |so-8859 |characte|
|00000b80| 72 20 73 65 74 2e 20 69 | 73 6f 2d 38 38 35 39 2d |r set. i|so-8859-|
|00000b90| 31 20 69 73 0a 20 20 20 | 74 68 65 20 6d 6f 73 74 |1 is. |the most|
|00000ba0| 20 63 6f 6d 6d 6f 6e 2e | 0a 0a 38 29 20 6d 61 69 | common.|..8) mai|
|00000bb0| 6c 74 6f 2e 63 20 6c 69 | 6e 65 20 36 38 33 3a 20 |lto.c li|ne 683: |
|00000bc0| 49 6e 20 74 68 65 20 41 | 6d 69 67 61 20 4f 53 20 |In the A|miga OS |
|00000bd0| 61 20 66 69 6c 65 20 6f | 70 65 6e 65 64 20 66 6f |a file o|pened fo|
|00000be0| 72 20 77 72 69 74 69 6e | 67 20 63 61 6e 20 6e 6f |r writin|g can no|
|00000bf0| 74 20 62 65 20 6f 70 65 | 6e 65 64 0a 20 20 20 62 |t be ope|ned. b|
|00000c00| 79 20 61 6e 79 6f 6e 65 | 20 65 6c 73 65 2e 20 54 |y anyone| else. T|
|00000c10| 68 65 20 73 63 68 65 6d | 65 20 69 73 20 73 69 6e |he schem|e is sin|
|00000c20| 67 6c 65 20 77 72 69 74 | 65 72 2c 20 6d 75 6c 74 |gle writ|er, mult|
|00000c30| 69 70 6c 65 20 72 65 61 | 64 65 72 73 2e 0a 0a 39 |iple rea|ders...9|
|00000c40| 29 20 6d 61 69 6c 74 6f | 20 6c 69 6e 65 20 37 31 |) mailto| line 71|
|00000c50| 32 3a 20 43 68 65 63 6b | 20 69 66 20 74 68 65 20 |2: Check| if the |
|00000c60| 66 69 6c 65 20 6a 75 73 | 74 20 72 65 61 64 20 69 |file jus|t read i|
|00000c70| 6e 20 63 6f 6e 74 61 69 | 6e 73 20 63 68 61 72 61 |n contai|ns chara|
|00000c80| 63 74 65 72 73 20 74 68 | 61 74 0a 20 20 20 72 65 |cters th|at. re|
|00000c90| 71 75 69 72 65 20 74 68 | 65 20 6d 65 73 73 61 67 |quire th|e messag|
|00000ca0| 65 20 74 6f 20 62 65 20 | 65 6e 63 6f 64 65 64 2d |e to be |encoded-|
|00000cb0| 0a 0a 31 30 29 20 6d 61 | 69 6c 74 6f 20 6c 69 6e |..10) ma|ilto lin|
|00000cc0| 65 20 31 34 34 34 3a 20 | 4f 6c 64 65 72 20 76 65 |e 1444: |Older ve|
|00000cd0| 72 73 69 6f 6e 73 20 6f | 66 20 74 68 65 20 41 6d |rsions o|f the Am|
|00000ce0| 69 67 61 20 4f 53 20 64 | 6f 20 6e 6f 74 20 64 65 |iga OS d|o not de|
|00000cf0| 61 6c 20 67 72 61 63 65 | 66 75 6c 6c 79 20 77 69 |al grace|fully wi|
|00000d00| 74 68 0a 20 20 20 6c 69 | 6e 65 73 20 6c 6f 6e 67 |th. li|nes long|
|00000d10| 65 72 20 74 68 61 6e 20 | 32 35 35 20 63 68 61 72 |er than |255 char|
|00000d20| 61 63 74 65 72 73 2e 0a | 0a 31 31 29 20 6d 65 74 |acters..|.11) met|
|00000d30| 61 6d 61 69 6c 20 6c 69 | 6e 65 20 31 31 38 3a 20 |amail li|ne 118: |
|00000d40| 54 68 65 20 63 6f 6d 70 | 69 6c 65 72 20 49 20 75 |The comp|iler I u|
|00000d50| 73 65 20 68 61 73 20 61 | 20 62 61 64 20 64 65 66 |se has a| bad def|
|00000d60| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 4e 55 4c 4c 20 |inition |of NULL |
|00000d70| 69 6e 0a 20 20 20 20 73 | 74 64 64 65 66 2e 68 2c |in. s|tddef.h,|
|00000d80| 20 6e 61 6d 65 6c 79 0a | 20 20 20 20 20 20 20 20 | namely.| |
|00000d90| 23 64 65 66 69 6e 65 20 | 4e 55 4c 4c 20 20 20 20 |#define |NULL |
|00000da0| 20 28 28 76 6f 69 64 20 | 2a 29 30 4c 29 0a 20 20 | ((void |*)0L). |
|00000db0| 20 20 54 68 69 73 20 6d | 61 6b 65 73 20 74 68 65 | This m|akes the|
|00000dc0| 20 63 6f 6d 70 69 6c 65 | 72 20 63 6f 6d 70 6c 61 | compile|r compla|
|00000dd0| 69 6e 20 77 68 65 6e 65 | 76 65 72 20 4e 55 4c 4c |in whene|ver NULL|
|00000de0| 20 69 73 20 75 73 65 64 | 20 61 73 20 61 6e 20 69 | is used| as an i|
|00000df0| 6e 74 65 67 65 72 2e 20 | 49 20 68 61 76 65 0a 20 |nteger. |I have. |
|00000e00| 20 20 20 69 6e 20 73 65 | 76 65 72 61 6c 20 70 6c | in se|veral pl|
|00000e10| 61 63 65 73 20 69 6e 20 | 74 68 65 20 6d 65 74 61 |aces in |the meta|
|00000e20| 6d 61 69 6c 20 63 6f 64 | 65 20 63 68 61 6e 67 65 |mail cod|e change|
|00000e30| 64 20 4e 55 4c 4c 20 74 | 6f 20 30 2e 20 49 20 72 |d NULL t|o 0. I r|
|00000e40| 65 61 6c 69 73 65 20 6e | 6f 77 20 74 68 61 74 0a |ealise n|ow that.|
|00000e50| 20 20 20 20 49 20 63 6f | 75 6c 64 20 69 6e 73 74 | I co|uld inst|
|00000e60| 65 61 64 20 68 61 76 65 | 20 70 75 74 20 61 20 72 |ead have| put a r|
|00000e70| 65 64 65 66 69 6e 69 74 | 69 6f 6e 20 6f 66 20 4e |edefinit|ion of N|
|00000e80| 55 4c 4c 20 61 74 20 74 | 68 65 20 74 6f 70 20 6f |ULL at t|he top o|
|00000e90| 66 20 74 68 65 20 66 69 | 6c 65 2e 0a 0a 31 32 29 |f the fi|le...12)|
|00000ea0| 20 6d 65 74 61 6d 61 69 | 6c 20 6c 69 6e 65 20 31 | metamai|l line 1|
|00000eb0| 39 38 3a 20 54 68 65 20 | 41 6d 69 67 61 20 4f 53 |98: The |Amiga OS|
|00000ec0| 20 64 6f 65 73 20 6e 6f | 74 20 61 6c 6c 6f 77 20 | does no|t allow |
|00000ed0| 75 6e 6c 69 6e 6b 69 6e | 67 20 6f 66 20 61 6e 20 |unlinkin|g of an |
|00000ee0| 6f 70 65 6e 20 66 69 6c | 65 2e 0a 20 30 20 30 0a |open fil|e.. 0 0.|
|00000ef0| 67 72 65 65 6e 62 75 73 | 68 3a 28 70 69 64 31 30 |greenbus|h:(pid10|
|00000f00| 37 29 20 2f 66 73 2f 66 | 61 6c 69 6e 65 2f 75 73 |7) /fs/f|aline/us|
|00000f10| 72 36 20 69 67 6e 6f 72 | 65 20 72 6f 2c 69 6e 74 |r6 ignor|e ro,int|
|00000f20| 72 2c 70 6f 72 74 3d 37 | 30 32 2c 6d 61 70 3d 61 |r,port=7|02,map=a|
|00000f30| 75 74 6f 2e 66 73 2c 64 | 69 72 65 63 74 20 30 20 |uto.fs,d|irect 0 |
|00000f40| 30 0a 67 72 65 65 6e 62 | 75 73 68 3a 28 70 69 64 |0.greenb|ush:(pid|
|00000f50| 31 30 37 29 20 2f 66 73 | 2f 73 74 65 76 65 2f 75 |107) /fs|/steve/u|
|00000f60| 73 72 32 20 69 67 6e 6f | 72 65 20 72 6f 2c 69 6e |sr2 igno|re ro,in|
|00000f70| 74 72 2c 70 6f 72 74 3d | 37 30 32 2c 6d 61 70 3d |tr,port=|702,map=|
|00000f80| 61 75 74 6f 2e 66 73 2c | 64 69 72 65 63 74 20 30 |auto.fs,|direct 0|
|00000f90| 20 30 0a 67 72 65 65 6e | 62 75 73 68 3a 28 70 69 | 0.green|bush:(pi|
|00000fa0| 64 31 30 37 29 20 2f 66 | 73 2f 6d 6f 6e 65 74 2f |d107) /f|s/monet/|
|00000fb0| 75 73 72 34 20 69 67 6e | 6f 72 65 20 72 6f 2c 69 |usr4 ign|ore ro,i|
|00000fc0| 6e 74 72 2c 70 6f 72 74 | 3d 37 30 32 2c 6d 61 70 |ntr,port|=702,map|
|00000fd0| 3d 61 75 74 6f 2e 66 73 | 2c 64 69 72 65 63 74 20 |=auto.fs|,direct |
|00000fe0| 30 20 30 0a 67 72 65 65 | 6e 62 75 73 68 3a 28 70 |0 0.gree|nbush:(p|
|00000ff0| 69 64 31 30 37 29 20 2f | 66 73 2f 6d 61 72 73 2f |id107) /|fs/mars/|
|00001000| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00001010| 69 67 61 53 72 63 2f 00 | 00 00 00 00 00 00 00 00 |igaSrc/.|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 31 30 30 |.... 7|55 . 100|
|00001070| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00001080| 20 20 20 20 20 20 30 20 | 20 35 33 31 35 36 35 36 | 0 | 5315656|
|00001090| 32 33 33 20 20 31 30 33 | 34 34 00 20 00 00 00 00 |233 103|44. ....|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00001210| 69 67 61 53 72 63 2f 69 | 6c 62 6d 54 6f 47 49 46 |igaSrc/i|lbmToGIF|
|00001220| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00001270| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00001280| 20 20 20 32 30 31 32 20 | 20 35 32 30 31 35 33 35 | 2012 | 5201535|
|00001290| 36 31 34 20 20 31 32 33 | 33 35 00 20 00 00 00 00 |614 123|35. ....|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 2f 2a 20 43 72 65 61 74 | 65 20 61 20 47 49 46 20 |/* Creat|e a GIF |
|00001410| 69 6d 61 67 65 20 66 72 | 6f 6d 20 61 6e 20 49 46 |image fr|om an IF|
|00001420| 46 20 49 4c 42 4d 20 66 | 69 6c 65 2e 0a 20 2a 20 |F ILBM f|ile.. * |
|00001430| 41 73 6b 20 74 68 65 20 | 75 73 65 72 20 74 6f 20 |Ask the |user to |
|00001440| 6e 61 6d 65 20 61 6e 20 | 49 4c 42 4d 2e 20 57 65 |name an |ILBM. We|
|00001450| 20 74 68 65 6e 20 63 61 | 6c 6c 20 70 72 6f 67 72 | then ca|ll progr|
|00001460| 61 6d 73 20 74 68 61 74 | 20 64 6f 20 74 68 65 20 |ams that| do the |
|00001470| 61 63 74 75 61 6c 0a 20 | 2a 20 63 6f 6e 76 65 72 |actual. |* conver|
|00001480| 73 69 6f 6e 2e 20 54 68 | 65 20 47 49 46 20 69 6d |sion. Th|e GIF im|
|00001490| 61 67 65 20 77 69 6c 6c | 20 62 65 20 67 69 76 65 |age will| be give|
|000014a0| 6e 20 74 68 65 20 6e 61 | 6d 65 20 70 72 6f 76 69 |n the na|me provi|
|000014b0| 64 65 64 20 61 73 20 74 | 68 65 20 66 69 72 73 74 |ded as t|he first|
|000014c0| 0a 20 2a 20 28 61 6e 64 | 20 6f 6e 6c 79 29 20 61 |. * (and| only) a|
|000014d0| 72 67 75 6d 65 6e 74 2e | 0a 20 2a 0a 20 2a 20 55 |rgument.|. *. * U|
|000014e0| 73 61 67 65 3a 0a 20 2a | 20 20 69 6c 62 6d 54 6f |sage:. *| ilbmTo|
|000014f0| 47 49 46 20 74 65 6d 70 | 5f 66 69 6c 65 5f 6e 61 |GIF temp|_file_na|
|00001500| 6d 65 0a 20 2a 2f 0a 0a | 23 69 6e 63 6c 75 64 65 |me. */..|#include|
|00001510| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 23 69 6e 63 6c | <stdio.|h>.#incl|
|00001520| 75 64 65 20 3c 73 74 72 | 69 6e 67 2e 68 3e 0a 0a |ude <str|ing.h>..|
|00001530| 6d 61 69 6e 28 61 72 67 | 63 2c 20 61 72 67 76 29 |main(arg|c, argv)|
|00001540| 0a 69 6e 74 20 61 72 67 | 63 3b 0a 63 68 61 72 20 |.int arg|c;.char |
|00001550| 2a 2a 61 72 67 76 3b 0a | 7b 0a 20 20 20 20 63 68 |**argv;.|{. ch|
|00001560| 61 72 20 6c 69 6e 65 42 | 75 66 5b 32 30 30 5d 3b |ar lineB|uf[200];|
|00001570| 0a 20 20 20 20 63 68 61 | 72 20 63 6f 6d 6d 61 6e |. cha|r comman|
|00001580| 64 5b 32 35 30 5d 3b 0a | 20 20 20 20 69 6e 74 20 |d[250];.| int |
|00001590| 69 3b 0a 0a 20 20 20 20 | 69 66 20 28 61 72 67 63 |i;.. |if (argc|
|000015a0| 20 21 3d 20 32 29 20 7b | 0a 20 20 20 20 20 20 20 | != 2) {|. |
|000015b0| 20 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c | fprintf|(stderr,|
|000015c0| 20 22 55 73 61 67 65 3a | 20 25 73 20 74 65 6d 70 | "Usage:| %s temp|
|000015d0| 5f 66 69 6c 65 5f 6e 61 | 6d 65 5c 6e 22 2c 20 61 |_file_na|me\n", a|
|000015e0| 72 67 76 5b 30 5d 29 3b | 0a 20 20 20 20 20 20 20 |rgv[0]);|. |
|000015f0| 20 65 78 69 74 28 31 30 | 29 3b 0a 20 20 20 20 7d | exit(10|);. }|
|00001600| 0a 0a 20 20 20 20 70 72 | 69 6e 74 66 28 22 45 6e |.. pr|intf("En|
|00001610| 74 65 72 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ter the |name of |
|00001620| 61 6e 20 49 4c 42 4d 20 | 49 46 46 20 66 69 6c 65 |an ILBM |IFF file|
|00001630| 3a 20 22 29 3b 0a 20 20 | 20 20 66 67 65 74 73 28 |: ");. | fgets(|
|00001640| 6c 69 6e 65 42 75 66 2c | 20 73 69 7a 65 6f 66 28 |lineBuf,| sizeof(|
|00001650| 6c 69 6e 65 42 75 66 29 | 2c 20 73 74 64 69 6e 29 |lineBuf)|, stdin)|
|00001660| 3b 0a 20 20 20 20 69 20 | 3d 20 73 74 72 6c 65 6e |;. i |= strlen|
|00001670| 28 6c 69 6e 65 42 75 66 | 29 3b 0a 20 20 20 20 69 |(lineBuf|);. i|
|00001680| 66 20 28 69 20 3e 20 30 | 20 26 26 20 6c 69 6e 65 |f (i > 0| && line|
|00001690| 42 75 66 5b 69 20 2d 20 | 31 5d 20 3d 3d 20 27 5c |Buf[i - |1] == '\|
|000016a0| 6e 27 29 20 7b 0a 20 20 | 20 20 20 20 20 20 6c 69 |n') {. | li|
|000016b0| 6e 65 42 75 66 5b 69 20 | 2d 20 31 5d 20 3d 20 30 |neBuf[i |- 1] = 0|
|000016c0| 3b 0a 20 20 20 20 20 20 | 20 20 69 2d 2d 3b 0a 20 |;. | i--;. |
|000016d0| 20 20 20 7d 0a 20 20 20 | 20 69 66 20 28 69 20 3d | }. | if (i =|
|000016e0| 3d 20 30 20 7c 7c 20 61 | 63 63 65 73 73 28 6c 69 |= 0 || a|ccess(li|
|000016f0| 6e 65 42 75 66 2c 20 34 | 29 29 20 7b 0a 20 20 20 |neBuf, 4|)) {. |
|00001700| 20 20 20 20 20 66 70 72 | 69 6e 74 66 28 73 74 64 | fpr|intf(std|
|00001710| 65 72 72 2c 20 22 25 73 | 3a 20 55 6e 61 62 6c 65 |err, "%s|: Unable|
|00001720| 20 74 6f 20 61 63 63 65 | 73 73 20 66 69 6c 65 20 | to acce|ss file |
|00001730| 27 25 73 27 5c 6e 22 2c | 20 61 72 67 76 5b 30 5d |'%s'\n",| argv[0]|
|00001740| 2c 20 6c 69 6e 65 42 75 | 66 29 3b 0a 20 20 20 20 |, lineBu|f);. |
|00001750| 20 20 20 20 65 78 69 74 | 28 31 30 29 3b 0a 20 20 | exit|(10);. |
|00001760| 20 20 7d 0a 0a 2f 2a 20 | 20 20 20 73 70 72 69 6e | }../* | sprin|
|00001770| 74 66 28 63 6f 6d 6d 61 | 6e 64 2c 20 22 69 6c 62 |tf(comma|nd, "ilb|
|00001780| 6d 74 6f 70 70 6d 20 25 | 73 20 7c 20 70 70 6d 74 |mtoppm %|s | ppmt|
|00001790| 6f 67 69 66 20 3e 25 73 | 22 2c 20 6c 69 6e 65 42 |ogif >%s|", lineB|
|000017a0| 75 66 2c 20 61 72 67 76 | 5b 31 5d 29 3b 20 2a 2f |uf, argv|[1]); */|
|000017b0| 0a 20 20 20 20 73 70 72 | 69 6e 74 66 28 63 6f 6d |. spr|intf(com|
|000017c0| 6d 61 6e 64 2c 20 22 66 | 62 63 61 74 20 2d 47 20 |mand, "f|bcat -G |
|000017d0| 3c 25 73 20 3e 25 73 22 | 2c 20 6c 69 6e 65 42 75 |<%s >%s"|, lineBu|
|000017e0| 66 2c 20 61 72 67 76 5b | 31 5d 29 3b 0a 20 20 20 |f, argv[|1]);. |
|000017f0| 20 65 78 69 74 28 73 79 | 73 74 65 6d 28 63 6f 6d | exit(sy|stem(com|
|00001800| 6d 61 6e 64 29 29 3b 0a | 7d 0a 72 20 65 78 69 73 |mand));.|}.r exis|
|00001810| 74 65 6e 63 65 29 2e 0a | 0a 35 29 20 6d 61 69 6c |tence)..|.5) mail|
|00001820| 74 6f 2e 63 20 6c 69 6e | 65 20 32 31 34 3a 20 54 |to.c lin|e 214: T|
|00001830| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 73 |he name |of the s|
|00001840| 69 67 6e 61 74 75 72 65 | 20 66 69 6c 65 2e 20 49 |ignature| file. I|
|00001850| 20 71 75 69 63 6b 6c 79 | 20 64 69 73 63 6f 76 65 | quickly| discove|
|00001860| 72 65 64 20 74 68 61 74 | 0a 20 20 20 74 68 65 20 |red that|. the |
|00001870| 2e 73 69 67 6e 61 74 75 | 72 65 20 74 68 61 74 20 |.signatu|re that |
|00001880| 49 20 61 6d 20 75 73 69 | 6e 67 20 77 69 74 68 20 |I am usi|ng with |
|00001890| 72 65 67 75 6c 61 72 20 | 6d 61 69 6c 20 70 72 6f |regular |mail pro|
|000018a0| 67 72 61 6d 73 2c 20 64 | 6f 65 73 20 6e 6f 74 20 |grams, d|oes not |
|000018b0| 6c 6f 6f 6b 0a 20 20 20 | 70 72 65 74 74 79 2c 20 |look. |pretty, |
|000018c0| 6f 72 20 65 76 65 6e 20 | 72 65 61 64 61 62 6c 65 |or even |readable|
|000018d0| 2c 20 77 68 65 6e 20 76 | 69 65 77 65 64 20 61 73 |, when v|iewed as|
|000018e0| 20 72 69 63 68 74 65 78 | 74 2e 20 49 20 68 61 76 | richtex|t. I hav|
|000018f0| 65 20 74 68 65 72 65 66 | 6f 72 65 20 63 72 65 61 |e theref|ore crea|
|00001900| 74 65 64 0a 20 20 20 73 | 65 70 61 72 61 74 65 20 |ted. s|eparate |
|00001910| 73 69 67 6e 61 74 75 72 | 65 20 66 69 6c 65 73 20 |signatur|e files |
|00001920| 66 6f 72 20 75 73 65 20 | 77 69 74 68 20 6d 61 69 |for use |with mai|
|00001930| 6c 74 6f 2e 0a 0a 36 29 | 20 6d 61 69 6c 74 6f 2e |lto...6)| mailto.|
|00001940| 63 20 6c 69 6e 65 20 33 | 38 35 3a 20 41 20 73 68 |c line 3|85: A sh|
|00001950| 6f 72 74 63 6f 6d 69 6e | 67 20 77 69 74 68 20 74 |ortcomin|g with t|
|00001960| 68 65 20 41 6d 69 67 61 | 20 69 73 20 74 68 61 74 |he Amiga| is that|
|00001970| 20 69 74 20 6e 6f 72 6d | 61 6c 6c 79 20 68 61 73 | it norm|ally has|
|00001980| 20 61 0a 20 20 20 73 6d | 61 6c 6c 20 61 6e 64 20 | a. sm|all and |
|00001990| 66 69 78 65 64 20 73 69 | 7a 65 20 73 74 61 63 6b |fixed si|ze stack|
|000019a0| 20 28 74 68 65 20 73 69 | 7a 65 20 69 73 20 75 73 | (the si|ze is us|
|000019b0| 65 72 20 73 65 74 74 61 | 62 6c 65 2c 20 62 75 74 |er setta|ble, but|
|000019c0| 20 6f 6e 65 20 63 61 6e | 20 6e 6f 74 20 72 65 6c | one can| not rel|
|000019d0| 79 0a 20 20 20 6f 6e 20 | 74 68 61 74 20 69 74 20 |y. on |that it |
|000019e0| 69 73 20 62 69 67 67 65 | 72 20 74 68 61 6e 20 34 |is bigge|r than 4|
|000019f0| 20 6b 42 79 74 65 29 2e | 20 54 68 65 20 63 6f 6d | kByte).| The com|
|00001a00| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00001a10| 69 67 61 53 72 63 2f 66 | 61 6b 65 4e 65 77 57 73 |igaSrc/f|akeNewWs|
|00001a20| 68 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.c.....|........|
|00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00001a70| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00001a80| 20 20 20 33 31 33 31 20 | 20 35 32 30 31 35 33 35 | 3131 | 5201535|
|00001a90| 36 31 35 20 20 31 32 36 | 32 37 00 20 00 00 00 00 |615 126|27. ....|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 2f 2a 20 54 68 65 20 57 | 53 68 65 6c 6c 20 63 61 |/* The W|Shell ca|
|00001c10| 6e 20 62 65 20 69 6e 76 | 6f 6b 65 64 20 77 69 74 |n be inv|oked wit|
|00001c20| 68 20 61 20 63 6f 6d 6d | 61 6e 64 20 61 73 20 61 |h a comm|and as a|
|00001c30| 6e 20 61 72 67 75 6d 65 | 6e 74 2c 20 74 68 75 73 |n argume|nt, thus|
|00001c40| 3a 0a 20 20 20 20 6e 65 | 77 77 73 68 20 43 4d 44 |:. ne|wwsh CMD|
|00001c50| 20 6c 73 20 2d 6c 0a 20 | 20 20 6e 65 77 63 6c 69 | ls -l. | newcli|
|00001c60| 20 61 6e 64 20 6e 65 77 | 73 68 65 6c 6c 20 72 65 | and new|shell re|
|00001c70| 71 75 69 72 65 20 61 20 | 63 6f 6d 6d 61 6e 64 66 |quire a |commandf|
|00001c80| 69 6c 65 2c 20 74 68 75 | 73 3a 0a 20 20 20 20 6e |ile, thu|s:. n|
|00001c90| 65 77 63 6c 69 20 46 52 | 4f 4d 20 61 5f 66 69 6c |ewcli FR|OM a_fil|
|00001ca0| 65 0a 20 20 20 54 68 69 | 73 20 70 72 6f 67 72 61 |e. Thi|s progra|
|00001cb0| 6d 20 61 63 63 65 70 74 | 73 20 61 20 63 6f 6d 6d |m accept|s a comm|
|00001cc0| 61 6e 64 20 61 73 20 61 | 72 67 75 6d 65 6e 74 73 |and as a|rguments|
|00001cd0| 20 74 6f 20 74 68 65 20 | 70 72 6f 67 72 61 6d 2e | to the |program.|
|00001ce0| 20 49 74 20 73 71 75 69 | 72 72 65 6c 73 0a 20 20 | It squi|rrels. |
|00001cf0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 73 20 61 77 | the com|mands aw|
|00001d00| 61 79 20 69 6e 20 61 20 | 66 69 6c 65 20 61 6e 64 |ay in a |file and|
|00001d10| 20 69 6e 76 6f 6b 65 73 | 20 6e 65 77 63 6c 69 20 | invokes| newcli |
|00001d20| 6f 6e 20 74 68 69 73 20 | 66 69 6c 65 2e 0a 0a 20 |on this |file... |
|00001d30| 20 20 54 68 65 20 6d 65 | 74 61 6d 61 69 6c 20 70 | The me|tamail p|
|00001d40| 72 6f 67 72 61 6d 20 68 | 61 73 20 61 20 63 61 6c |rogram h|as a cal|
|00001d50| 6c 20 74 6f 20 6e 65 77 | 77 73 68 20 68 61 72 64 |l to new|wsh hard|
|00001d60| 77 69 72 65 64 20 69 6e | 2e 20 59 6f 75 20 63 61 |wired in|. You ca|
|00001d70| 6e 20 67 65 74 20 6d 65 | 74 61 6d 61 69 6c 0a 20 |n get me|tamail. |
|00001d80| 20 20 74 6f 20 75 73 65 | 20 66 61 6b 65 4e 65 77 | to use| fakeNew|
|00001d90| 57 73 68 20 69 6e 73 74 | 65 61 64 20 62 79 20 73 |Wsh inst|ead by s|
|00001da0| 65 74 74 69 6e 67 20 74 | 68 65 20 65 6e 76 69 72 |etting t|he envir|
|00001db0| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 20 |onment v|ariable |
|00001dc0| 54 45 52 4d 49 4e 41 4c | 5f 43 4d 44 0a 20 20 20 |TERMINAL|_CMD. |
|00001dd0| 20 73 65 74 65 6e 76 20 | 54 45 52 4d 49 4e 41 4c | setenv |TERMINAL|
|00001de0| 5f 43 4d 44 20 22 66 61 | 6b 65 4e 65 77 57 73 68 |_CMD "fa|keNewWsh|
|00001df0| 20 43 4d 44 20 22 0a 20 | 20 20 28 74 68 65 20 74 | CMD ". | (the t|
|00001e00| 72 61 69 6c 69 6e 67 20 | 73 70 61 63 65 20 69 73 |railing |space is|
|00001e10| 20 69 6d 70 6f 72 74 61 | 6e 74 29 2e 0a 0a 20 20 | importa|nt)... |
|00001e20| 20 55 73 61 67 65 3a 0a | 20 20 20 20 66 61 6b 65 | Usage:.| fake|
|00001e30| 4e 65 77 57 73 68 20 5b | 6f 70 74 69 6f 6e 73 5f |NewWsh [|options_|
|00001e40| 74 6f 5f 6e 65 77 63 6c | 69 5d 20 43 4d 44 20 63 |to_newcl|i] CMD c|
|00001e50| 6f 6d 6d 61 6e 64 5f 74 | 6f 5f 6e 65 77 63 6c 69 |ommand_t|o_newcli|
|00001e60| 0a 20 2a 2f 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |. */..#i|nclude <|
|00001e70| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|00001e80| 65 20 3c 73 74 72 69 6e | 67 2e 68 3e 0a 0a 6d 61 |e <strin|g.h>..ma|
|00001e90| 69 6e 28 61 72 67 63 2c | 20 61 72 67 76 29 0a 69 |in(argc,| argv).i|
|00001ea0| 6e 74 20 61 72 67 63 3b | 0a 63 68 61 72 20 2a 2a |nt argc;|.char **|
|00001eb0| 61 72 67 76 3b 0a 7b 0a | 20 20 20 20 63 68 61 72 |argv;.{.| char|
|00001ec0| 20 63 6f 6d 6d 61 6e 64 | 5b 33 30 30 5d 2c 20 66 | command|[300], f|
|00001ed0| 72 6f 6d 4e 61 6d 65 5b | 31 35 5d 2c 20 64 65 6c |romName[|15], del|
|00001ee0| 65 74 65 43 6f 6d 6d 61 | 6e 64 5b 33 30 5d 3b 0a |eteComma|nd[30];.|
|00001ef0| 20 20 20 20 69 6e 74 20 | 69 3b 0a 20 20 20 20 46 | int |i;. F|
|00001f00| 49 4c 45 20 2a 66 72 6f | 6d 46 69 6c 65 3b 0a 0a |ILE *fro|mFile;..|
|00001f10| 20 20 20 20 73 74 72 63 | 70 79 28 63 6f 6d 6d 61 | strc|py(comma|
|00001f20| 6e 64 2c 20 22 6e 65 77 | 63 6c 69 20 22 29 3b 0a |nd, "new|cli ");.|
|00001f30| 20 20 20 20 66 6f 72 20 | 28 69 20 3d 20 31 3b 20 | for |(i = 1; |
|00001f40| 69 20 3c 20 61 72 67 63 | 3b 20 69 2b 2b 29 20 7b |i < argc|; i++) {|
|00001f50| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 73 74 72 |. | if (str|
|00001f60| 69 63 6d 70 28 61 72 67 | 76 5b 69 5d 2c 20 22 43 |icmp(arg|v[i], "C|
|00001f70| 4d 44 22 29 20 3d 3d 20 | 30 29 20 7b 0a 20 20 20 |MD") == |0) {. |
|00001f80| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.|
|00001f90| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. |
|00001fa0| 20 20 73 74 72 63 61 74 | 28 63 6f 6d 6d 61 6e 64 | strcat|(command|
|00001fb0| 2c 20 61 72 67 76 5b 69 | 5d 29 3b 0a 20 20 20 20 |, argv[i|]);. |
|00001fc0| 20 20 20 20 73 74 72 63 | 61 74 28 63 6f 6d 6d 61 | strc|at(comma|
|00001fd0| 6e 64 2c 20 22 20 22 29 | 3b 0a 20 20 20 20 7d 0a |nd, " ")|;. }.|
|00001fe0| 20 20 20 20 69 66 20 28 | 69 20 3c 20 61 72 67 63 | if (|i < argc|
|00001ff0| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 69 2b 2b 3b |) {. | i++;|
|00002000| 0a 20 20 20 20 20 20 20 | 20 73 74 72 63 70 79 28 |. | strcpy(|
|00002010| 66 72 6f 6d 4e 61 6d 65 | 2c 20 22 54 3a 6d 6d 58 |fromName|, "T:mmX|
|00002020| 58 58 58 58 58 22 29 3b | 0a 20 20 20 20 20 20 20 |XXXXX");|. |
|00002030| 20 6d 6b 74 65 6d 70 28 | 66 72 6f 6d 4e 61 6d 65 | mktemp(|fromName|
|00002040| 29 3b 0a 20 20 20 20 20 | 20 20 20 73 74 72 63 61 |);. | strca|
|00002050| 74 28 63 6f 6d 6d 61 6e | 64 2c 20 22 46 52 4f 4d |t(comman|d, "FROM|
|00002060| 20 22 29 3b 0a 20 20 20 | 20 20 20 20 20 73 74 72 | ");. | str|
|00002070| 63 61 74 28 63 6f 6d 6d | 61 6e 64 2c 20 66 72 6f |cat(comm|and, fro|
|00002080| 6d 4e 61 6d 65 29 3b 0a | 20 20 20 20 20 20 20 20 |mName);.| |
|00002090| 69 66 20 28 28 66 72 6f | 6d 46 69 6c 65 20 3d 20 |if ((fro|mFile = |
|000020a0| 66 6f 70 65 6e 28 66 72 | 6f 6d 4e 61 6d 65 2c 20 |fopen(fr|omName, |
|000020b0| 22 77 22 29 29 20 3d 3d | 20 4e 55 4c 4c 29 20 7b |"w")) ==| NULL) {|
|000020c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 66 70 72 |. | fpr|
|000020d0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 25 73 |intf(std|err, "%s|
|000020e0| 3a 20 55 6e 61 62 6c 65 | 20 74 6f 20 6f 70 65 6e |: Unable| to open|
|000020f0| 20 25 73 20 66 6f 72 20 | 77 72 69 74 69 6e 67 5c | %s for |writing\|
|00002100| 6e 22 2c 20 61 72 67 76 | 5b 30 5d 2c 0a 20 20 20 |n", argv|[0],. |
|00002110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002120| 20 66 72 6f 6d 4e 61 6d | 65 29 3b 0a 20 20 20 20 | fromNam|e);. |
|00002130| 20 20 20 20 20 20 20 20 | 65 78 69 74 28 31 29 3b | |exit(1);|
|00002140| 0a 20 20 20 20 20 20 20 | 20 7d 0a 20 20 20 20 20 |. | }. |
|00002150| 20 20 20 66 6f 72 20 28 | 20 3b 20 69 20 3c 20 61 | for (| ; i < a|
|00002160| 72 67 63 3b 20 69 2b 2b | 29 20 7b 0a 20 20 20 20 |rgc; i++|) {. |
|00002170| 20 20 20 20 20 20 20 20 | 66 70 72 69 6e 74 66 28 | |fprintf(|
|00002180| 66 72 6f 6d 46 69 6c 65 | 2c 20 22 25 73 20 22 2c |fromFile|, "%s ",|
|00002190| 20 61 72 67 76 5b 69 5d | 29 3b 0a 20 20 20 20 20 | argv[i]|);. |
|000021a0| 20 20 20 7d 0a 20 20 20 | 20 20 20 20 20 66 70 72 | }. | fpr|
|000021b0| 69 6e 74 66 28 66 72 6f | 6d 46 69 6c 65 2c 20 22 |intf(fro|mFile, "|
|000021c0| 5c 6e 22 29 3b 0a 20 20 | 20 20 20 20 20 20 66 63 |\n");. | fc|
|000021d0| 6c 6f 73 65 28 66 72 6f | 6d 46 69 6c 65 29 3b 0a |lose(fro|mFile);.|
|000021e0| 20 20 20 20 7d 0a 0a 20 | 20 20 20 73 79 73 74 65 | }.. | syste|
|000021f0| 6d 28 63 6f 6d 6d 61 6e | 64 29 3b 0a 20 20 20 20 |m(comman|d);. |
|00002200| 73 70 72 69 6e 74 66 28 | 64 65 6c 65 74 65 43 6f |sprintf(|deleteCo|
|00002210| 6d 6d 61 6e 64 2c 20 22 | 44 65 6c 65 74 65 20 25 |mmand, "|Delete %|
|00002220| 73 22 2c 20 66 72 6f 6d | 4e 61 6d 65 29 3b 0a 20 |s", from|Name);. |
|00002230| 20 20 20 73 79 73 74 65 | 6d 28 64 65 6c 65 74 65 | syste|m(delete|
|00002240| 43 6f 6d 6d 61 6e 64 29 | 3b 0a 20 20 20 20 65 78 |Command)|;. ex|
|00002250| 69 74 28 30 29 3b 0a 7d | 0a 5f 6e 65 77 63 6c 69 |it(0);.}|._newcli|
|00002260| 0a 20 2a 2f 0a 0a 23 69 | 6e 63 6c 75 64 65 20 3c |. */..#i|nclude <|
|00002270| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|00002280| 65 20 3c 73 74 72 69 6e | 67 2e 68 3e 0a 0a 6d 61 |e <strin|g.h>..ma|
|00002290| 69 6e 28 61 72 67 63 2c | 20 61 72 67 76 29 0a 69 |in(argc,| argv).i|
|000022a0| 6e 74 20 61 72 67 63 3b | 0a 63 68 61 72 20 2a 2a |nt argc;|.char **|
|000022b0| 61 72 67 76 3b 0a 7b 0a | 20 20 20 20 63 68 61 72 |argv;.{.| char|
|000022c0| 20 63 6f 6d 6d 61 6e 64 | 5b 33 30 30 5d 2c 20 66 | command|[300], f|
|000022d0| 72 6f 6d 4e 61 6d 65 5b | 31 35 5d 2c 20 64 65 6c |romName[|15], del|
|000022e0| 65 74 65 43 6f 6d 6d 61 | 6e 64 5b 33 30 5d 3b 0a |eteComma|nd[30];.|
|000022f0| 20 20 20 20 69 6e 74 20 | 69 3b 0a 20 20 20 20 46 | int |i;. F|
|00002300| 49 4c 45 20 2a 66 72 6f | 6d 46 69 6c 65 3b 0a 0a |ILE *fro|mFile;..|
|00002310| 20 20 20 20 73 74 72 63 | 70 79 28 63 6f 6d 6d 61 | strc|py(comma|
|00002320| 6e 64 2c 20 22 6e 65 77 | 63 6c 69 20 22 29 3b 0a |nd, "new|cli ");.|
|00002330| 20 20 20 20 66 6f 72 20 | 28 69 20 3d 20 31 3b 20 | for |(i = 1; |
|00002340| 69 20 3c 20 61 72 67 63 | 3b 20 69 2b 2b 29 20 7b |i < argc|; i++) {|
|00002350| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 73 74 72 |. | if (str|
|00002360| 69 63 6d 70 28 61 72 67 | 76 5b 69 5d 2c 20 22 43 |icmp(arg|v[i], "C|
|00002370| 4d 44 22 29 20 3d 3d 20 | 30 29 20 7b 0a 20 20 20 |MD") == |0) {. |
|00002380| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0a | | break;.|
|00002390| 20 20 20 20 20 20 20 20 | 7d 0a 20 20 20 20 20 20 | |}. |
|000023a0| 20 20 73 74 72 63 61 74 | 28 63 6f 6d 6d 61 6e 64 | strcat|(command|
|000023b0| 2c 20 61 72 67 76 5b 69 | 5d 29 3b 0a 20 20 20 20 |, argv[i|]);. |
|000023c0| 20 20 20 20 73 74 72 63 | 61 74 28 63 6f 6d 6d 61 | strc|at(comma|
|000023d0| 6e 64 2c 20 22 20 22 29 | 3b 0a 20 20 20 20 7d 0a |nd, " ")|;. }.|
|000023e0| 20 20 20 20 69 66 20 28 | 69 20 3c 20 61 72 67 63 | if (|i < argc|
|000023f0| 29 20 7b 0a 20 20 20 20 | 20 20 20 20 69 2b 2b 3b |) {. | i++;|
|00002400| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00002410| 69 67 61 53 72 63 2f 66 | 61 6b 65 50 69 70 65 2e |igaSrc/f|akePipe.|
|00002420| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00002470| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00002480| 20 20 20 32 34 30 37 20 | 20 35 32 30 31 35 33 35 | 2407 | 5201535|
|00002490| 36 31 36 20 20 31 32 33 | 31 37 00 20 00 00 00 00 |616 123|17. ....|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 2f 2a 20 53 6f 6d 65 20 | 70 72 6f 67 72 61 6d 73 |/* Some |programs|
|00002610| 20 64 6f 20 6e 6f 74 20 | 74 61 6b 65 20 70 69 70 | do not |take pip|
|00002620| 65 64 20 69 6e 70 75 74 | 2c 20 74 68 65 79 20 72 |ed input|, they r|
|00002630| 65 71 75 69 72 65 20 61 | 20 66 69 6c 65 20 61 73 |equire a| file as|
|00002640| 20 61 6e 20 61 72 67 75 | 6d 65 6e 74 2e 0a 20 2a | an argu|ment.. *|
|00002650| 20 54 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 69 73 | This co|mmand is|
|00002660| 20 61 20 73 69 6d 70 6c | 65 6d 69 6e 64 65 64 20 | a simpl|eminded |
|00002670| 77 6f 72 6b 61 72 6f 75 | 6e 64 20 66 6f 72 20 74 |workarou|nd for t|
|00002680| 68 69 73 2e 0a 20 2a 20 | 49 74 20 70 69 70 65 73 |his.. * |It pipes|
|00002690| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|000026a0| 74 6f 20 61 20 74 65 6d | 70 6f 72 61 72 79 20 66 |to a tem|porary f|
|000026b0| 69 6c 65 2c 20 74 68 65 | 6e 20 69 6e 76 6f 6b 65 |ile, the|n invoke|
|000026c0| 73 20 61 20 63 6f 6d 6d | 61 6e 64 20 6f 6e 20 74 |s a comm|and on t|
|000026d0| 68 65 0a 20 2a 20 66 69 | 6c 65 2e 20 54 68 65 20 |he. * fi|le. The |
|000026e0| 74 65 6d 70 6f 72 61 72 | 79 20 66 69 6c 65 20 69 |temporar|y file i|
|000026f0| 73 20 74 68 65 6e 20 72 | 65 6d 6f 76 65 64 2e 0a |s then r|emoved..|
|00002700| 20 2a 0a 20 2a 20 55 73 | 61 67 65 3a 0a 20 2a 20 | *. * Us|age:. * |
|00002710| 20 66 61 6b 65 50 69 70 | 65 20 63 6f 6d 6d 61 6e | fakePip|e comman|
|00002720| 64 20 5b 6f 70 74 69 6f | 6e 73 5f 74 6f 5f 63 6f |d [optio|ns_to_co|
|00002730| 6d 6d 61 6e 64 5d 0a 20 | 2a 2f 0a 0a 23 69 6e 63 |mmand]. |*/..#inc|
|00002740| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 23 |lude <st|dio.h>.#|
|00002750| 69 6e 63 6c 75 64 65 20 | 3c 73 74 72 69 6e 67 2e |include |<string.|
|00002760| 68 3e 0a 0a 6d 61 69 6e | 28 61 72 67 63 2c 20 61 |h>..main|(argc, a|
|00002770| 72 67 76 29 0a 69 6e 74 | 20 61 72 67 63 3b 0a 63 |rgv).int| argc;.c|
|00002780| 68 61 72 20 2a 2a 61 72 | 67 76 3b 0a 7b 0a 20 20 |har **ar|gv;.{. |
|00002790| 20 20 63 68 61 72 20 63 | 6f 6d 6d 61 6e 64 5b 33 | char c|ommand[3|
|000027a0| 30 30 5d 2c 20 70 69 70 | 65 4e 61 6d 65 5b 31 35 |00], pip|eName[15|
|000027b0| 5d 2c 20 64 65 6c 65 74 | 65 43 6f 6d 6d 61 6e 64 |], delet|eCommand|
|000027c0| 5b 33 30 5d 3b 0a 20 20 | 20 20 63 68 61 72 20 62 |[30];. | char b|
|000027d0| 75 66 5b 42 55 46 53 49 | 5a 5d 3b 0a 20 20 20 20 |uf[BUFSI|Z];. |
|000027e0| 69 6e 74 20 69 3b 0a 20 | 20 20 20 69 6e 74 20 62 |int i;. | int b|
|000027f0| 79 74 65 73 52 65 61 64 | 3b 0a 20 20 20 20 46 49 |ytesRead|;. FI|
|00002800| 4c 45 20 2a 70 69 70 65 | 46 69 6c 65 3b 0a 0a 20 |LE *pipe|File;.. |
|00002810| 20 20 20 69 66 20 28 61 | 72 67 63 20 3c 20 32 29 | if (a|rgc < 2)|
|00002820| 20 7b 0a 20 20 20 20 20 | 20 20 20 66 70 72 69 6e | {. | fprin|
|00002830| 74 66 28 73 74 64 65 72 | 72 2c 20 22 55 73 61 67 |tf(stder|r, "Usag|
|00002840| 65 3a 20 25 73 20 63 6f | 6d 6d 61 6e 64 20 5b 6f |e: %s co|mmand [o|
|00002850| 70 74 69 6f 6e 73 5f 74 | 6f 5f 63 6f 6d 6d 61 6e |ptions_t|o_comman|
|00002860| 64 5d 5c 6e 22 2c 20 61 | 72 67 76 5b 30 5d 29 3b |d]\n", a|rgv[0]);|
|00002870| 0a 20 20 20 20 20 20 20 | 20 65 78 69 74 28 31 29 |. | exit(1)|
|00002880| 3b 0a 20 20 20 20 7d 0a | 0a 20 20 20 20 73 74 72 |;. }.|. str|
|00002890| 63 70 79 28 70 69 70 65 | 4e 61 6d 65 2c 20 22 54 |cpy(pipe|Name, "T|
|000028a0| 3a 66 70 58 58 58 58 58 | 58 22 29 3b 0a 20 20 20 |:fpXXXXX|X");. |
|000028b0| 20 6d 6b 74 65 6d 70 28 | 70 69 70 65 4e 61 6d 65 | mktemp(|pipeName|
|000028c0| 29 3b 0a 20 20 20 20 69 | 66 20 28 28 70 69 70 65 |);. i|f ((pipe|
|000028d0| 46 69 6c 65 20 3d 20 66 | 6f 70 65 6e 28 70 69 70 |File = f|open(pip|
|000028e0| 65 4e 61 6d 65 2c 20 22 | 77 22 29 29 20 3d 3d 20 |eName, "|w")) == |
|000028f0| 4e 55 4c 4c 29 20 7b 0a | 20 20 20 20 20 20 20 20 |NULL) {.| |
|00002900| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00002910| 22 25 73 3a 20 55 6e 61 | 62 6c 65 20 74 6f 20 6f |"%s: Una|ble to o|
|00002920| 70 65 6e 20 25 73 20 66 | 6f 72 20 77 72 69 74 69 |pen %s f|or writi|
|00002930| 6e 67 5c 6e 22 2c 20 61 | 72 67 76 5b 30 5d 2c 0a |ng\n", a|rgv[0],.|
|00002940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002950| 70 69 70 65 4e 61 6d 65 | 29 3b 0a 20 20 20 20 20 |pipeName|);. |
|00002960| 20 20 20 65 78 69 74 28 | 31 29 3b 0a 20 20 20 20 | exit(|1);. |
|00002970| 7d 0a 0a 20 20 20 20 77 | 68 69 6c 65 20 28 28 62 |}.. w|hile ((b|
|00002980| 79 74 65 73 52 65 61 64 | 20 3d 20 66 72 65 61 64 |ytesRead| = fread|
|00002990| 28 62 75 66 2c 20 31 2c | 20 42 55 46 53 49 5a 2c |(buf, 1,| BUFSIZ,|
|000029a0| 20 73 74 64 69 6e 29 29 | 20 3e 20 30 29 20 7b 0a | stdin))| > 0) {.|
|000029b0| 20 20 20 20 20 20 20 20 | 66 77 72 69 74 65 28 62 | |fwrite(b|
|000029c0| 75 66 2c 20 31 2c 20 62 | 79 74 65 73 52 65 61 64 |uf, 1, b|ytesRead|
|000029d0| 2c 20 70 69 70 65 46 69 | 6c 65 29 3b 0a 20 20 20 |, pipeFi|le);. |
|000029e0| 20 7d 0a 20 20 20 20 66 | 63 6c 6f 73 65 28 70 69 | }. f|close(pi|
|000029f0| 70 65 46 69 6c 65 29 3b | 0a 0a 20 20 20 20 73 70 |peFile);|.. sp|
|00002a00| 72 69 6e 74 66 28 63 6f | 6d 6d 61 6e 64 2c 20 22 |rintf(co|mmand, "|
|00002a10| 25 73 20 25 73 22 2c 20 | 61 72 67 76 5b 31 5d 2c |%s %s", |argv[1],|
|00002a20| 20 70 69 70 65 4e 61 6d | 65 29 3b 0a 0a 20 20 20 | pipeNam|e);.. |
|00002a30| 20 66 6f 72 20 28 69 20 | 3d 20 32 3b 20 69 20 3c | for (i |= 2; i <|
|00002a40| 20 61 72 67 63 3b 20 69 | 2b 2b 29 20 7b 0a 20 20 | argc; i|++) {. |
|00002a50| 20 20 20 20 20 20 73 74 | 72 63 61 74 28 63 6f 6d | st|rcat(com|
|00002a60| 6d 61 6e 64 2c 20 22 20 | 22 29 3b 0a 20 20 20 20 |mand, " |");. |
|00002a70| 20 20 20 20 73 74 72 63 | 61 74 28 63 6f 6d 6d 61 | strc|at(comma|
|00002a80| 6e 64 2c 20 61 72 67 76 | 5b 69 5d 29 3b 0a 20 20 |nd, argv|[i]);. |
|00002a90| 20 20 7d 0a 0a 20 20 20 | 20 73 79 73 74 65 6d 28 | }.. | system(|
|00002aa0| 63 6f 6d 6d 61 6e 64 29 | 3b 0a 20 20 20 20 73 70 |command)|;. sp|
|00002ab0| 72 69 6e 74 66 28 64 65 | 6c 65 74 65 43 6f 6d 6d |rintf(de|leteComm|
|00002ac0| 61 6e 64 2c 20 22 44 65 | 6c 65 74 65 20 25 73 22 |and, "De|lete %s"|
|00002ad0| 2c 20 70 69 70 65 4e 61 | 6d 65 29 3b 0a 20 20 20 |, pipeNa|me);. |
|00002ae0| 20 73 79 73 74 65 6d 28 | 64 65 6c 65 74 65 43 6f | system(|deleteCo|
|00002af0| 6d 6d 61 6e 64 29 3b 0a | 20 20 20 20 65 78 69 74 |mmand);.| exit|
|00002b00| 28 30 29 3b 0a 7d 0a 73 | 65 70 61 72 61 74 65 20 |(0);.}.s|eparate |
|00002b10| 73 69 67 6e 61 74 75 72 | 65 20 66 69 6c 65 73 20 |signatur|e files |
|00002b20| 66 6f 72 20 75 73 65 20 | 77 69 74 68 20 6d 61 69 |for use |with mai|
|00002b30| 6c 74 6f 2e 0a 0a 36 29 | 20 6d 61 69 6c 74 6f 2e |lto...6)| mailto.|
|00002b40| 63 20 6c 69 6e 65 20 33 | 38 35 3a 20 41 20 73 68 |c line 3|85: A sh|
|00002b50| 6f 72 74 63 6f 6d 69 6e | 67 20 77 69 74 68 20 74 |ortcomin|g with t|
|00002b60| 68 65 20 41 6d 69 67 61 | 20 69 73 20 74 68 61 74 |he Amiga| is that|
|00002b70| 20 69 74 20 6e 6f 72 6d | 61 6c 6c 79 20 68 61 73 | it norm|ally has|
|00002b80| 20 61 0a 20 20 20 73 6d | 61 6c 6c 20 61 6e 64 20 | a. sm|all and |
|00002b90| 66 69 78 65 64 20 73 69 | 7a 65 20 73 74 61 63 6b |fixed si|ze stack|
|00002ba0| 20 28 74 68 65 20 73 69 | 7a 65 20 69 73 20 75 73 | (the si|ze is us|
|00002bb0| 65 72 20 73 65 74 74 61 | 62 6c 65 2c 20 62 75 74 |er setta|ble, but|
|00002bc0| 20 6f 6e 65 20 63 61 6e | 20 6e 6f 74 20 72 65 6c | one can| not rel|
|00002bd0| 79 0a 20 20 20 6f 6e 20 | 74 68 61 74 20 69 74 20 |y. on |that it |
|00002be0| 69 73 20 62 69 67 67 65 | 72 20 74 68 61 6e 20 34 |is bigge|r than 4|
|00002bf0| 20 6b 42 79 74 65 29 2e | 20 54 68 65 20 63 6f 6d | kByte).| The com|
|00002c00| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00002c10| 69 67 61 53 72 63 2f 55 | 55 43 50 2d 31 2e 31 35 |igaSrc/U|UCP-1.15|
|00002c20| 44 2f 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |D/......|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 31 30 30 |.... 7|55 . 100|
|00002c70| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00002c80| 20 20 20 20 20 20 30 20 | 20 35 32 30 31 35 33 35 | 0 | 5201535|
|00002c90| 36 32 30 20 20 31 31 35 | 37 34 00 20 00 00 00 00 |620 115|74. ....|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00002e10| 69 67 61 53 72 63 2f 55 | 55 43 50 2d 31 2e 31 35 |igaSrc/U|UCP-1.15|
|00002e20| 44 2f 70 6f 70 65 6e 2e | 63 00 00 00 00 00 00 00 |D/popen.|c.......|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00002e70| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00002e80| 20 20 20 36 30 32 31 20 | 20 35 32 30 31 35 33 35 | 6021 | 5201535|
|00002e90| 36 31 37 20 20 31 33 31 | 35 33 00 20 00 00 00 00 |617 131|53. ....|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00003010| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|00003020| 6c 69 62 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |lib.h>.#|include |
|00003030| 22 70 6f 70 65 6e 2e 68 | 22 0a 23 69 6e 63 6c 75 |"popen.h|".#inclu|
|00003040| 64 65 20 3c 73 74 72 69 | 6e 67 2e 68 3e 0a 23 69 |de <stri|ng.h>.#i|
|00003050| 6e 63 6c 75 64 65 20 22 | 63 6f 6e 66 69 67 2e 68 |nclude "|config.h|
|00003060| 22 0a 0a 50 72 6f 74 6f | 74 79 70 65 20 46 49 4c |"..Proto|type FIL|
|00003070| 45 20 2a 70 6f 70 65 6e | 28 63 68 61 72 20 2a 63 |E *popen|(char *c|
|00003080| 6f 6d 6d 61 6e 64 2c 20 | 63 68 61 72 20 2a 6d 6f |ommand, |char *mo|
|00003090| 64 65 29 3b 0a 50 72 6f | 74 6f 74 79 70 65 20 69 |de);.Pro|totype i|
|000030a0| 6e 74 20 70 63 6c 6f 73 | 65 28 46 49 4c 45 20 2a |nt pclos|e(FILE *|
|000030b0| 20 63 75 72 72 65 6e 74 | 29 3b 0a 0a 23 69 66 6e | current|);..#ifn|
|000030c0| 64 65 66 20 41 4d 49 47 | 41 0a 73 74 61 74 69 63 |def AMIG|A.static|
|000030d0| 20 63 68 61 72 20 74 65 | 6d 70 6c 61 74 65 5b 5d | char te|mplate[]|
|000030e0| 20 3d 20 22 70 69 58 58 | 58 58 58 58 22 3b 0a 23 | = "piXX|XXXX";.#|
|000030f0| 65 6c 73 65 0a 73 74 61 | 74 69 63 20 76 6f 69 64 |else.sta|tic void|
|00003100| 20 6d 6b 63 6d 64 28 63 | 68 61 72 20 2a 2c 20 63 | mkcmd(c|har *, c|
|00003110| 68 61 72 20 2a 2c 20 63 | 68 61 72 2c 20 63 68 61 |har *, c|har, cha|
|00003120| 72 20 2a 29 3b 0a 65 78 | 74 65 72 6e 20 63 68 61 |r *);.ex|tern cha|
|00003130| 72 20 2a 6d 6b 74 65 6d | 70 28 63 68 61 72 20 2a |r *mktem|p(char *|
|00003140| 29 3b 0a 23 65 6e 64 69 | 66 0a 0a 23 69 66 64 65 |);.#endi|f..#ifde|
|00003150| 66 20 5f 44 43 43 0a 23 | 64 65 66 69 6e 65 20 5f |f _DCC.#|define _|
|00003160| 4e 46 49 4c 45 20 46 4f | 50 45 4e 5f 4d 41 58 0a |NFILE FO|PEN_MAX.|
|00003170| 23 65 6e 64 69 66 0a 0a | 74 79 70 65 64 65 66 20 |#endif..|typedef |
|00003180| 65 6e 75 6d 20 7b 20 75 | 6e 6f 70 65 6e 65 64 20 |enum { u|nopened |
|00003190| 3d 20 30 2c 20 72 65 61 | 64 69 6e 67 2c 20 77 72 |= 0, rea|ding, wr|
|000031a0| 69 74 69 6e 67 20 7d 20 | 70 69 70 65 6d 6f 64 65 |iting } |pipemode|
|000031b0| 3b 0a 73 74 61 74 69 63 | 0a 73 74 72 75 63 74 20 |;.static|.struct |
|000031c0| 7b 0a 20 20 20 20 63 68 | 61 72 20 2a 63 6f 6d 6d |{. ch|ar *comm|
|000031d0| 61 6e 64 3b 0a 20 20 20 | 20 63 68 61 72 20 2a 6e |and;. | char *n|
|000031e0| 61 6d 65 3b 0a 20 20 20 | 20 70 69 70 65 6d 6f 64 |ame;. | pipemod|
|000031f0| 65 20 70 6d 6f 64 65 3b | 0a 7d 20 70 69 70 65 73 |e pmode;|.} pipes|
|00003200| 5b 5f 4e 46 49 4c 45 5d | 3b 0a 0a 46 49 4c 45 20 |[_NFILE]|;..FILE |
|00003210| 2a 0a 70 6f 70 65 6e 28 | 20 63 68 61 72 20 2a 63 |*.popen(| char *c|
|00003220| 6f 6d 6d 61 6e 64 2c 20 | 63 68 61 72 20 2a 6d 6f |ommand, |char *mo|
|00003230| 64 65 20 29 20 7b 0a 20 | 20 20 20 46 49 4c 45 20 |de ) {. | FILE |
|00003240| 2a 63 75 72 72 65 6e 74 | 3b 0a 20 20 20 20 63 68 |*current|;. ch|
|00003250| 61 72 20 2a 6e 61 6d 65 | 3b 0a 20 20 20 20 69 6e |ar *name|;. in|
|00003260| 74 20 63 75 72 3b 0a 20 | 20 20 20 70 69 70 65 6d |t cur;. | pipem|
|00003270| 6f 64 65 20 63 75 72 6d | 6f 64 65 3b 0a 23 69 66 |ode curm|ode;.#if|
|00003280| 64 65 66 20 41 4d 49 47 | 41 0a 63 68 61 72 20 2a |def AMIG|A.char *|
|00003290| 74 65 6d 70 6c 61 74 65 | 20 3d 20 22 54 3a 70 69 |template| = "T:pi|
|000032a0| 58 58 58 58 58 58 22 3b | 0a 23 65 6e 64 69 66 0a |XXXXXX";|.#endif.|
|000032b0| 20 20 20 20 2f 2a 0a 20 | 20 20 20 2a 2a 20 64 65 | /*. | ** de|
|000032c0| 63 69 64 65 20 6f 6e 20 | 6d 6f 64 65 2e 0a 20 20 |cide on |mode.. |
|000032d0| 20 20 2a 2f 0a 20 20 20 | 20 69 66 28 73 74 72 63 | */. | if(strc|
|000032e0| 6d 70 28 6d 6f 64 65 2c | 22 72 22 29 20 3d 3d 20 |mp(mode,|"r") == |
|000032f0| 30 29 0a 20 20 20 20 20 | 20 20 20 63 75 72 6d 6f |0). | curmo|
|00003300| 64 65 20 3d 20 72 65 61 | 64 69 6e 67 3b 0a 20 20 |de = rea|ding;. |
|00003310| 20 20 65 6c 73 65 20 69 | 66 28 73 74 72 63 6d 70 | else i|f(strcmp|
|00003320| 28 6d 6f 64 65 2c 22 77 | 22 29 20 3d 3d 20 30 29 |(mode,"w|") == 0)|
|00003330| 0a 20 20 20 20 20 20 20 | 20 63 75 72 6d 6f 64 65 |. | curmode|
|00003340| 20 3d 20 77 72 69 74 69 | 6e 67 3b 0a 20 20 20 20 | = writi|ng;. |
|00003350| 65 6c 73 65 0a 20 20 20 | 20 20 20 20 20 72 65 74 |else. | ret|
|00003360| 75 72 6e 20 4e 55 4c 4c | 3b 0a 20 20 20 20 2f 2a |urn NULL|;. /*|
|00003370| 0a 20 20 20 20 2a 2a 20 | 67 65 74 20 61 20 6e 61 |. ** |get a na|
|00003380| 6d 65 20 74 6f 20 75 73 | 65 2e 0a 20 20 20 20 2a |me to us|e.. *|
|00003390| 2f 0a 23 69 66 64 65 66 | 20 41 4d 49 47 41 0a 20 |/.#ifdef| AMIGA. |
|000033a0| 20 20 20 6e 61 6d 65 20 | 3d 20 6d 6b 74 65 6d 70 | name |= mktemp|
|000033b0| 28 74 65 6d 70 6c 61 74 | 65 29 3b 0a 23 65 6c 73 |(templat|e);.#els|
|000033c0| 65 0a 20 20 20 20 69 66 | 28 28 6e 61 6d 65 20 3d |e. if|((name =|
|000033d0| 20 74 65 6d 70 6e 61 6d | 28 22 2e 22 2c 22 70 69 | tempnam|(".","pi|
|000033e0| 70 22 29 29 3d 3d 4e 55 | 4c 4c 29 0a 20 20 20 20 |p"))==NU|LL). |
|000033f0| 20 20 20 20 72 65 74 75 | 72 6e 20 4e 55 4c 4c 3b | retu|rn NULL;|
|00003400| 0a 23 65 6e 64 69 66 0a | 20 20 20 20 2f 2a 0a 20 |.#endif.| /*. |
|00003410| 20 20 20 2a 2a 20 49 66 | 20 77 65 27 72 65 20 72 | ** If| we're r|
|00003420| 65 61 64 69 6e 67 2c 20 | 6a 75 73 74 20 63 61 6c |eading, |just cal|
|00003430| 6c 20 73 79 73 74 65 6d | 20 74 6f 20 67 65 74 20 |l system| to get |
|00003440| 61 20 66 69 6c 65 20 66 | 69 6c 6c 65 64 20 77 69 |a file f|illed wi|
|00003450| 74 68 0a 20 20 20 20 2a | 2a 20 6f 75 74 70 75 74 |th. *|* output|
|00003460| 2e 0a 20 20 20 20 2a 2f | 0a 20 20 20 20 69 66 28 |.. */|. if(|
|00003470| 63 75 72 6d 6f 64 65 20 | 3d 3d 20 72 65 61 64 69 |curmode |== readi|
|00003480| 6e 67 29 20 7b 0a 20 20 | 20 20 20 20 20 20 63 68 |ng) {. | ch|
|00003490| 61 72 20 63 6d 64 5b 32 | 35 36 5d 3b 0a 23 69 66 |ar cmd[2|56];.#if|
|000034a0| 64 65 66 20 41 4d 49 47 | 41 0a 20 20 20 20 20 20 |def AMIG|A. |
|000034b0| 20 20 6d 6b 63 6d 64 28 | 63 6d 64 2c 20 63 6f 6d | mkcmd(|cmd, com|
|000034c0| 6d 61 6e 64 2c 20 27 3e | 27 2c 20 6e 61 6d 65 29 |mand, '>|', name)|
|000034d0| 3b 0a 23 65 6c 73 65 0a | 20 20 20 20 20 20 20 20 |;.#else.| |
|000034e0| 73 70 72 69 6e 74 66 28 | 63 6d 64 2c 22 25 73 20 |sprintf(|cmd,"%s |
|000034f0| 3e 20 25 73 22 2c 63 6f | 6d 6d 61 6e 64 2c 6e 61 |> %s",co|mmand,na|
|00003500| 6d 65 29 3b 0a 23 65 6e | 64 69 66 0a 20 20 20 20 |me);.#en|dif. |
|00003510| 20 20 20 20 73 79 73 74 | 65 6d 28 63 6d 64 29 3b | syst|em(cmd);|
|00003520| 0a 20 20 20 20 20 20 20 | 20 69 66 28 28 63 75 72 |. | if((cur|
|00003530| 72 65 6e 74 20 3d 20 66 | 6f 70 65 6e 28 6e 61 6d |rent = f|open(nam|
|00003540| 65 2c 22 72 22 29 29 20 | 3d 3d 20 4e 55 4c 4c 29 |e,"r")) |== NULL)|
|00003550| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 74 |. | ret|
|00003560| 75 72 6e 20 4e 55 4c 4c | 3b 0a 20 20 20 20 7d 20 |urn NULL|;. } |
|00003570| 65 6c 73 65 20 7b 0a 20 | 20 20 20 20 20 20 20 69 |else {. | i|
|00003580| 66 28 28 63 75 72 72 65 | 6e 74 20 3d 20 66 6f 70 |f((curre|nt = fop|
|00003590| 65 6e 28 6e 61 6d 65 2c | 22 77 22 29 29 20 3d 3d |en(name,|"w")) ==|
|000035a0| 20 4e 55 4c 4c 29 0a 20 | 20 20 20 20 20 20 20 20 | NULL). | |
|000035b0| 20 20 20 72 65 74 75 72 | 6e 20 4e 55 4c 4c 3b 0a | retur|n NULL;.|
|000035c0| 20 20 20 20 7d 0a 20 20 | 20 20 63 75 72 20 3d 20 | }. | cur = |
|000035d0| 66 69 6c 65 6e 6f 28 63 | 75 72 72 65 6e 74 29 3b |fileno(c|urrent);|
|000035e0| 0a 20 20 20 20 70 69 70 | 65 73 5b 63 75 72 5d 2e |. pip|es[cur].|
|000035f0| 6e 61 6d 65 20 3d 20 73 | 74 72 64 75 70 28 6e 61 |name = s|trdup(na|
|00003600| 6d 65 29 3b 0a 20 20 20 | 20 70 69 70 65 73 5b 63 |me);. | pipes[c|
|00003610| 75 72 5d 2e 70 6d 6f 64 | 65 20 3d 20 63 75 72 6d |ur].pmod|e = curm|
|00003620| 6f 64 65 3b 0a 20 20 20 | 20 70 69 70 65 73 5b 63 |ode;. | pipes[c|
|00003630| 75 72 5d 2e 63 6f 6d 6d | 61 6e 64 20 3d 20 73 74 |ur].comm|and = st|
|00003640| 72 64 75 70 28 63 6f 6d | 6d 61 6e 64 29 3b 0a 20 |rdup(com|mand);. |
|00003650| 20 20 20 72 65 74 75 72 | 6e 20 63 75 72 72 65 6e | retur|n curren|
|00003660| 74 3b 0a 7d 0a 0a 69 6e | 74 0a 70 63 6c 6f 73 65 |t;.}..in|t.pclose|
|00003670| 28 20 46 49 4c 45 20 2a | 20 63 75 72 72 65 6e 74 |( FILE *| current|
|00003680| 29 20 7b 0a 20 20 20 20 | 69 6e 74 20 63 75 72 20 |) {. |int cur |
|00003690| 3d 20 66 69 6c 65 6e 6f | 28 63 75 72 72 65 6e 74 |= fileno|(current|
|000036a0| 29 2c 72 76 61 6c 3b 0a | 20 20 20 20 2f 2a 0a 20 |),rval;.| /*. |
|000036b0| 20 20 20 2a 2a 20 63 68 | 65 63 6b 20 66 6f 72 20 | ** ch|eck for |
|000036c0| 61 6e 20 6f 70 65 6e 20 | 66 69 6c 65 2e 0a 20 20 |an open |file.. |
|000036d0| 20 20 2a 2f 0a 20 20 20 | 20 69 66 28 70 69 70 65 | */. | if(pipe|
|000036e0| 73 5b 63 75 72 5d 2e 70 | 6d 6f 64 65 20 3d 3d 20 |s[cur].p|mode == |
|000036f0| 75 6e 6f 70 65 6e 65 64 | 29 0a 20 20 20 20 20 20 |unopened|). |
|00003700| 20 20 72 65 74 75 72 6e | 20 2d 31 3b 0a 20 20 20 | return| -1;. |
|00003710| 20 69 66 28 70 69 70 65 | 73 5b 63 75 72 5d 2e 70 | if(pipe|s[cur].p|
|00003720| 6d 6f 64 65 20 3d 3d 20 | 72 65 61 64 69 6e 67 29 |mode == |reading)|
|00003730| 20 7b 0a 20 20 20 20 20 | 20 20 20 2f 2a 0a 20 20 | {. | /*. |
|00003740| 20 20 20 20 20 20 2a 2a | 20 69 6e 70 75 74 20 70 | **| input p|
|00003750| 69 70 65 73 20 61 72 65 | 20 6a 75 73 74 20 66 69 |ipes are| just fi|
|00003760| 6c 65 73 20 77 65 27 72 | 65 20 64 6f 6e 65 20 77 |les we'r|e done w|
|00003770| 69 74 68 2e 0a 20 20 20 | 20 20 20 20 20 2a 2f 0a |ith.. | */.|
|00003780| 20 20 20 20 20 20 20 20 | 72 76 61 6c 20 3d 20 66 | |rval = f|
|00003790| 63 6c 6f 73 65 28 63 75 | 72 72 65 6e 74 29 3b 0a |close(cu|rrent);.|
|000037a0| 20 20 20 20 20 20 20 20 | 75 6e 6c 69 6e 6b 28 70 | |unlink(p|
|000037b0| 69 70 65 73 5b 63 75 72 | 5d 2e 6e 61 6d 65 29 3b |ipes[cur|].name);|
|000037c0| 0a 20 20 20 20 7d 20 65 | 6c 73 65 20 7b 0a 20 20 |. } e|lse {. |
|000037d0| 20 20 20 20 20 20 2f 2a | 0a 20 20 20 20 20 20 20 | /*|. |
|000037e0| 20 2a 2a 20 6f 75 74 70 | 75 74 20 70 69 70 65 73 | ** outp|ut pipes|
|000037f0| 20 61 72 65 20 74 65 6d | 70 6f 72 61 72 79 20 66 | are tem|porary f|
|00003800| 69 6c 65 73 20 77 65 20 | 68 61 76 65 0a 20 20 20 |iles we |have. |
|00003810| 20 20 20 20 20 2a 2a 20 | 74 6f 20 63 72 61 6d 20 | ** |to cram |
|00003820| 64 6f 77 6e 20 74 68 65 | 20 74 68 72 6f 61 74 73 |down the| throats|
|00003830| 20 6f 66 20 70 72 6f 67 | 72 61 6d 73 2e 0a 20 20 | of prog|rams.. |
|00003840| 20 20 20 20 20 20 2a 2f | 0a 20 20 20 20 20 20 20 | */|. |
|00003850| 20 63 68 61 72 20 63 6f | 6d 6d 61 6e 64 5b 32 35 | char co|mmand[25|
|00003860| 36 5d 3b 0a 20 20 20 20 | 20 20 20 20 66 63 6c 6f |6];. | fclo|
|00003870| 73 65 28 63 75 72 72 65 | 6e 74 29 3b 0a 23 69 66 |se(curre|nt);.#if|
|00003880| 64 65 66 20 41 4d 49 47 | 41 0a 20 20 20 20 20 20 |def AMIG|A. |
|00003890| 20 20 6d 6b 63 6d 64 28 | 63 6f 6d 6d 61 6e 64 2c | mkcmd(|command,|
|000038a0| 20 70 69 70 65 73 5b 63 | 75 72 5d 2e 63 6f 6d 6d | pipes[c|ur].comm|
|000038b0| 61 6e 64 2c 20 27 3c 27 | 2c 20 70 69 70 65 73 5b |and, '<'|, pipes[|
|000038c0| 63 75 72 5d 2e 6e 61 6d | 65 29 3b 0a 23 65 6c 73 |cur].nam|e);.#els|
|000038d0| 65 0a 20 20 20 20 20 20 | 20 20 73 70 72 69 6e 74 |e. | sprint|
|000038e0| 66 28 63 6f 6d 6d 61 6e | 64 2c 22 25 73 20 3c 20 |f(comman|d,"%s < |
|000038f0| 25 73 22 2c 70 69 70 65 | 73 5b 63 75 72 5d 2e 63 |%s",pipe|s[cur].c|
|00003900| 6f 6d 6d 61 6e 64 2c 70 | 69 70 65 73 5b 63 75 72 |ommand,p|ipes[cur|
|00003910| 5d 2e 6e 61 6d 65 29 3b | 0a 23 65 6e 64 69 66 0a |].name);|.#endif.|
|00003920| 20 20 20 20 20 20 20 20 | 72 76 61 6c 20 3d 20 73 | |rval = s|
|00003930| 79 73 74 65 6d 28 63 6f | 6d 6d 61 6e 64 29 3b 0a |ystem(co|mmand);.|
|00003940| 20 20 20 20 20 20 20 20 | 75 6e 6c 69 6e 6b 28 70 | |unlink(p|
|00003950| 69 70 65 73 5b 63 75 72 | 5d 2e 6e 61 6d 65 29 3b |ipes[cur|].name);|
|00003960| 0a 20 20 20 20 7d 0a 20 | 20 20 20 2f 2a 0a 20 20 |. }. | /*. |
|00003970| 20 20 2a 2a 20 63 6c 65 | 61 6e 20 75 70 20 63 75 | ** cle|an up cu|
|00003980| 72 72 65 6e 74 20 70 69 | 70 65 2e 0a 20 20 20 20 |rrent pi|pe.. |
|00003990| 2a 2f 0a 20 20 20 20 70 | 69 70 65 73 5b 63 75 72 |*/. p|ipes[cur|
|000039a0| 5d 2e 70 6d 6f 64 65 20 | 3d 20 75 6e 6f 70 65 6e |].pmode |= unopen|
|000039b0| 65 64 3b 0a 20 20 20 20 | 66 72 65 65 28 70 69 70 |ed;. |free(pip|
|000039c0| 65 73 5b 63 75 72 5d 2e | 6e 61 6d 65 29 3b 0a 20 |es[cur].|name);. |
|000039d0| 20 20 20 66 72 65 65 28 | 70 69 70 65 73 5b 63 75 | free(|pipes[cu|
|000039e0| 72 5d 2e 63 6f 6d 6d 61 | 6e 64 29 3b 0a 20 20 20 |r].comma|nd);. |
|000039f0| 20 72 65 74 75 72 6e 20 | 72 76 61 6c 3b 0a 7d 0a | return |rval;.}.|
|00003a00| 23 69 66 64 65 66 20 41 | 4d 49 47 41 0a 2f 2a 20 |#ifdef A|MIGA./* |
|00003a10| 5e 25 23 40 25 21 20 41 | 6d 69 67 61 20 43 4c 49 |^%#@%! A|miga CLI|
|00003a20| 20 72 65 71 75 69 72 65 | 73 20 49 2f 4f 20 72 65 | require|s I/O re|
|00003a30| 64 69 72 65 63 74 69 6f | 6e 20 69 6d 6d 65 64 69 |directio|n immedi|
|00003a40| 61 74 65 6c 79 20 61 66 | 74 65 72 20 63 6f 6d 6d |ately af|ter comm|
|00003a50| 61 6e 64 20 6e 61 6d 65 | 2e 0a 20 20 20 41 73 73 |and name|.. Ass|
|00003a60| 75 6d 65 20 63 6f 6d 6d | 61 6e 64 20 6e 61 6d 65 |ume comm|and name|
|00003a70| 20 65 6e 64 73 20 61 74 | 20 66 69 72 73 74 20 73 | ends at| first s|
|00003a80| 70 61 63 65 20 61 6e 64 | 20 70 6c 61 63 65 20 72 |pace and| place r|
|00003a90| 65 64 69 72 65 63 74 69 | 6f 6e 20 74 68 65 72 65 |edirecti|on there|
|00003aa0| 20 2a 2f 0a 0a 73 74 61 | 74 69 63 20 76 6f 69 64 | */..sta|tic void|
|00003ab0| 0a 6d 6b 63 6d 64 28 63 | 68 61 72 20 2a 63 6d 64 |.mkcmd(c|har *cmd|
|00003ac0| 2c 20 63 68 61 72 20 2a | 63 6f 6d 6d 61 6e 64 2c |, char *|command,|
|00003ad0| 20 63 68 61 72 20 6f 70 | 2c 20 63 68 61 72 20 2a | char op|, char *|
|00003ae0| 6e 61 6d 65 29 0a 7b 0a | 20 20 77 68 69 6c 65 20 |name).{.| while |
|00003af0| 28 2a 63 6f 6d 6d 61 6e | 64 20 3d 3d 20 27 20 27 |(*comman|d == ' '|
|00003b00| 29 20 7b 0a 20 20 20 20 | 63 6f 6d 6d 61 6e 64 2b |) {. |command+|
|00003b10| 2b 3b 0a 20 20 7d 0a 20 | 20 77 68 69 6c 65 20 28 |+;. }. | while (|
|00003b20| 2a 63 6f 6d 6d 61 6e 64 | 20 21 3d 20 27 20 27 20 |*command| != ' ' |
|00003b30| 26 26 20 2a 63 6f 6d 6d | 61 6e 64 20 21 3d 20 27 |&& *comm|and != '|
|00003b40| 5c 30 30 30 27 29 20 7b | 0a 20 20 20 20 2a 63 6d |\000') {|. *cm|
|00003b50| 64 2b 2b 20 3d 20 2a 63 | 6f 6d 6d 61 6e 64 2b 2b |d++ = *c|ommand++|
|00003b60| 3b 0a 20 20 7d 0a 20 20 | 2a 63 6d 64 2b 2b 20 3d |;. }. |*cmd++ =|
|00003b70| 20 27 20 27 3b 0a 20 20 | 2a 63 6d 64 2b 2b 20 3d | ' ';. |*cmd++ =|
|00003b80| 20 6f 70 3b 0a 20 20 73 | 74 72 63 70 79 28 63 6d | op;. s|trcpy(cm|
|00003b90| 64 2c 20 6e 61 6d 65 29 | 3b 0a 20 20 63 6d 64 20 |d, name)|;. cmd |
|00003ba0| 2b 3d 20 73 74 72 6c 65 | 6e 28 6e 61 6d 65 29 3b |+= strle|n(name);|
|00003bb0| 0a 20 20 77 68 69 6c 65 | 20 28 2a 63 6f 6d 6d 61 |. while| (*comma|
|00003bc0| 6e 64 20 21 3d 20 27 5c | 30 30 30 27 29 20 7b 0a |nd != '\|000') {.|
|00003bd0| 20 20 20 20 2a 63 6d 64 | 2b 2b 20 3d 20 2a 63 6f | *cmd|++ = *co|
|00003be0| 6d 6d 61 6e 64 2b 2b 3b | 0a 20 20 7d 0a 20 20 2a |mmand++;|. }. *|
|00003bf0| 63 6d 64 20 3d 20 27 5c | 30 30 30 27 3b 0a 20 20 |cmd = '\|000';. |
|00003c00| 72 65 74 75 72 6e 3b 0a | 7d 0a 23 65 6e 64 69 66 |return;.|}.#endif|
|00003c10| 0a 74 72 2c 70 6f 72 74 | 3d 37 30 32 2c 6d 61 70 |.tr,port|=702,map|
|00003c20| 3d 61 75 74 6f 2e 66 73 | 2c 64 69 72 65 63 74 20 |=auto.fs|,direct |
|00003c30| 30 20 30 0a 67 72 65 65 | 6e 62 75 73 68 3a 28 70 |0 0.gree|nbush:(p|
|00003c40| 69 64 31 30 37 29 20 2f | 66 73 2f 64 65 78 74 65 |id107) /|fs/dexte|
|00003c50| 72 2f 6e 6f 62 61 63 6b | 75 70 32 20 69 67 6e 6f |r/noback|up2 igno|
|00003c60| 72 65 20 72 6f 2c 69 6e | 74 72 2c 70 6f 72 74 3d |re ro,in|tr,port=|
|00003c70| 37 30 32 2c 6d 61 70 3d | 61 75 74 6f 2e 66 73 2c |702,map=|auto.fs,|
|00003c80| 64 69 72 65 63 74 20 30 | 20 30 0a 67 72 65 65 6e |direct 0| 0.green|
|00003c90| 62 75 73 68 3a 28 70 69 | 64 31 30 37 29 20 2f 66 |bush:(pi|d107) /f|
|00003ca0| 73 2f 74 6f 75 72 69 73 | 6d 2f 75 73 72 32 20 69 |s/touris|m/usr2 i|
|00003cb0| 67 6e 6f 72 65 20 72 6f | 2c 69 6e 74 72 2c 70 6f |gnore ro|,intr,po|
|00003cc0| 72 74 3d 37 30 32 2c 6d | 61 70 3d 61 75 74 6f 2e |rt=702,m|ap=auto.|
|00003cd0| 66 73 2c 64 69 72 65 63 | 74 20 30 20 30 0a 67 72 |fs,direc|t 0 0.gr|
|00003ce0| 65 65 6e 62 75 73 68 3a | 28 70 69 64 31 30 37 29 |eenbush:|(pid107)|
|00003cf0| 20 2f 66 73 2f 74 68 75 | 6d 70 65 72 2f 75 73 72 | /fs/thu|mper/usr|
|00003d00| 32 20 69 67 6e 6f 72 65 | 20 72 6f 2c 69 6e 74 72 |2 ignore| ro,intr|
|00003d10| 2c 70 6f 72 74 3d 37 30 | 32 2c 6d 61 70 3d 61 75 |,port=70|2,map=au|
|00003d20| 74 6f 2e 66 73 2c 64 69 | 72 65 63 74 20 30 20 30 |to.fs,di|rect 0 0|
|00003d30| 0a 67 72 65 65 6e 62 75 | 73 68 3a 28 70 69 64 31 |.greenbu|sh:(pid1|
|00003d40| 30 37 29 20 2f 66 73 2f | 73 6e 69 64 65 6c 79 2f |07) /fs/|snidely/|
|00003d50| 75 73 72 31 20 69 67 6e | 6f 72 65 20 72 6f 2c 69 |usr1 ign|ore ro,i|
|00003d60| 6e 74 72 2c 70 6f 72 74 | 3d 37 30 32 2c 6d 61 70 |ntr,port|=702,map|
|00003d70| 3d 61 75 74 6f 2e 66 73 | 2c 64 69 72 65 63 74 20 |=auto.fs|,direct |
|00003d80| 30 20 30 0a 67 72 65 65 | 6e 62 75 73 68 3a 28 70 |0 0.gree|nbush:(p|
|00003d90| 69 64 31 30 37 29 20 2f | 66 73 2f 73 6c 61 6d 6d |id107) /|fs/slamm|
|00003da0| 65 72 2f 75 73 72 32 20 | 69 67 6e 6f 72 65 20 72 |er/usr2 |ignore r|
|00003db0| 6f 2c 69 6e 74 72 2c 70 | 6f 72 74 3d 37 30 32 2c |o,intr,p|ort=702,|
|00003dc0| 6d 61 70 3d 61 75 74 6f | 2e 66 73 2c 64 69 72 65 |map=auto|.fs,dire|
|00003dd0| 63 74 20 30 20 30 0a 67 | 72 65 65 6e 62 75 73 68 |ct 0 0.g|reenbush|
|00003de0| 3a 28 70 69 64 31 30 37 | 29 20 2f 66 73 2f 6c 61 |:(pid107|) /fs/la|
|00003df0| 74 6f 75 72 2f 75 73 72 | 31 30 20 69 67 6e 6f 72 |tour/usr|10 ignor|
|00003e00| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00003e10| 69 67 61 53 72 63 2f 55 | 55 43 50 2d 31 2e 31 35 |igaSrc/U|UCP-1.15|
|00003e20| 44 2f 70 6f 70 65 6e 2e | 68 00 00 00 00 00 00 00 |D/popen.|h.......|
|00003e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00003e70| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00003e80| 20 20 20 20 32 30 36 20 | 20 35 32 30 31 35 33 35 | 206 | 5201535|
|00003e90| 36 31 37 20 20 31 33 31 | 33 37 00 20 00 00 00 00 |617 131|37. ....|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 2f 2a 0a 2a 2a 20 70 6f | 70 65 6e 2e 68 20 2d 2d |/*.** po|pen.h --|
|00004010| 20 70 72 6f 74 6f 74 79 | 70 65 73 20 66 6f 72 20 | prototy|pes for |
|00004020| 70 69 70 65 20 66 75 6e | 63 74 69 6f 6e 73 0a 2a |pipe fun|ctions.*|
|00004030| 2f 0a 23 69 66 20 21 64 | 65 66 69 6e 65 64 28 46 |/.#if !d|efined(F|
|00004040| 49 4c 45 29 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |ILE).#in|clude <s|
|00004050| 74 64 69 6f 2e 68 3e 0a | 23 65 6e 64 69 66 0a 65 |tdio.h>.|#endif.e|
|00004060| 78 74 65 72 6e 20 46 49 | 4c 45 20 2a 70 6f 70 65 |xtern FI|LE *pope|
|00004070| 6e 28 20 63 68 61 72 20 | 2a 2c 20 63 68 61 72 20 |n( char |*, char |
|00004080| 2a 20 29 3b 0a 0a 2c 20 | 63 68 61 72 20 2a 6d 6f |* );.., |char *mo|
|00004090| 64 65 29 3b 0a 50 72 6f | 74 6f 74 79 70 65 20 69 |de);.Pro|totype i|
|000040a0| 6e 74 20 70 63 6c 6f 73 | 65 28 46 49 4c 45 20 2a |nt pclos|e(FILE *|
|000040b0| 20 63 75 72 72 65 6e 74 | 29 3b 0a 0a 23 69 66 6e | current|);..#ifn|
|000040c0| 64 65 66 20 41 4d 49 47 | 41 0a 73 74 61 74 69 63 |def AMIG|A.static|
|000040d0| 20 63 68 61 72 20 74 65 | 6d 70 6c 61 74 65 5b 5d | char te|mplate[]|
|000040e0| 20 3d 20 22 70 69 58 58 | 58 58 58 58 22 3b 0a 23 | = "piXX|XXXX";.#|
|000040f0| 65 6c 73 65 0a 73 74 61 | 74 69 63 20 76 6f 69 64 |else.sta|tic void|
|00004100| 20 6d 6b 63 6d 64 28 63 | 68 61 72 20 2a 2c 20 63 | mkcmd(c|har *, c|
|00004110| 68 61 72 20 2a 2c 20 63 | 68 61 72 2c 20 63 68 61 |har *, c|har, cha|
|00004120| 72 20 2a 29 3b 0a 65 78 | 74 65 72 6e 20 63 68 61 |r *);.ex|tern cha|
|00004130| 72 20 2a 6d 6b 74 65 6d | 70 28 63 68 61 72 20 2a |r *mktem|p(char *|
|00004140| 29 3b 0a 23 65 6e 64 69 | 66 0a 0a 23 69 66 64 65 |);.#endi|f..#ifde|
|00004150| 66 20 5f 44 43 43 0a 23 | 64 65 66 69 6e 65 20 5f |f _DCC.#|define _|
|00004160| 4e 46 49 4c 45 20 46 4f | 50 45 4e 5f 4d 41 58 0a |NFILE FO|PEN_MAX.|
|00004170| 23 65 6e 64 69 66 0a 0a | 74 79 70 65 64 65 66 20 |#endif..|typedef |
|00004180| 65 6e 75 6d 20 7b 20 75 | 6e 6f 70 65 6e 65 64 20 |enum { u|nopened |
|00004190| 3d 20 30 2c 20 72 65 61 | 64 69 6e 67 2c 20 77 72 |= 0, rea|ding, wr|
|000041a0| 69 74 69 6e 67 20 7d 20 | 70 69 70 65 6d 6f 64 65 |iting } |pipemode|
|000041b0| 3b 0a 73 74 61 74 69 63 | 0a 73 74 72 75 63 74 20 |;.static|.struct |
|000041c0| 7b 0a 20 20 20 20 63 68 | 61 72 20 2a 63 6f 6d 6d |{. ch|ar *comm|
|000041d0| 61 6e 64 3b 0a 20 20 20 | 20 63 68 61 72 20 2a 6e |and;. | char *n|
|000041e0| 61 6d 65 3b 0a 20 20 20 | 20 70 69 70 65 6d 6f 64 |ame;. | pipemod|
|000041f0| 65 20 70 6d 6f 64 65 3b | 0a 7d 20 70 69 70 65 73 |e pmode;|.} pipes|
|00004200| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00004210| 69 67 61 53 72 63 2f 55 | 55 43 50 2d 31 2e 31 35 |igaSrc/U|UCP-1.15|
|00004220| 44 2f 6d 6b 74 65 6d 70 | 2e 63 00 00 00 00 00 00 |D/mktemp|.c......|
|00004230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00004270| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00004280| 20 20 20 20 37 37 31 20 | 20 35 32 30 31 35 33 35 | 771 | 5201535|
|00004290| 36 32 30 20 20 31 33 33 | 30 37 00 20 00 00 00 00 |620 133|07. ....|
|000042a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004400| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00004410| 68 3e 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |h>.#incl|ude <std|
|00004420| 6c 69 62 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |lib.h>.#|include |
|00004430| 3c 73 74 72 69 6e 67 2e | 68 3e 0a 23 69 66 64 65 |<string.|h>.#ifde|
|00004440| 66 20 4c 41 54 54 49 43 | 45 0a 23 69 6e 63 6c 75 |f LATTIC|E.#inclu|
|00004450| 64 65 20 3c 70 72 6f 74 | 6f 2f 65 78 65 63 2e 68 |de <prot|o/exec.h|
|00004460| 3e 0a 23 65 6e 64 69 66 | 0a 23 69 6e 63 6c 75 64 |>.#endif|.#includ|
|00004470| 65 20 22 63 6f 6e 66 69 | 67 2e 68 22 0a 0a 50 72 |e "confi|g.h"..Pr|
|00004480| 6f 74 6f 74 79 70 65 20 | 63 68 61 72 20 2a 6d 6b |ototype |char *mk|
|00004490| 74 65 6d 70 28 63 68 61 | 72 20 2a 62 75 66 29 3b |temp(cha|r *buf);|
|000044a0| 0a 0a 63 68 61 72 20 2a | 0a 6d 6b 74 65 6d 70 28 |..char *|.mktemp(|
|000044b0| 63 68 61 72 20 2a 62 75 | 66 29 0a 7b 0a 20 20 6c |char *bu|f).{. l|
|000044c0| 6f 6e 67 20 70 69 64 20 | 3d 20 28 6c 6f 6e 67 29 |ong pid |= (long)|
|000044d0| 46 69 6e 64 54 61 73 6b | 28 30 4c 29 3b 0a 20 20 |FindTask|(0L);. |
|000044e0| 63 68 61 72 20 2a 63 3b | 0a 0a 20 20 63 20 3d 20 |char *c;|.. c = |
|000044f0| 62 75 66 20 2b 20 73 74 | 72 6c 65 6e 28 62 75 66 |buf + st|rlen(buf|
|00004500| 29 3b 0a 0a 20 20 77 68 | 69 6c 65 20 28 2a 2d 2d |);.. wh|ile (*--|
|00004510| 63 20 3d 3d 20 27 58 27 | 29 20 7b 0a 20 20 20 20 |c == 'X'|) {. |
|00004520| 2a 63 20 3d 20 70 69 64 | 20 25 20 31 30 20 2b 20 |*c = pid| % 10 + |
|00004530| 27 30 27 3b 0a 20 20 20 | 20 70 69 64 20 2f 3d 20 |'0';. | pid /= |
|00004540| 31 30 3b 0a 20 20 7d 0a | 20 20 63 2b 2b 3b 0a 20 |10;. }.| c++;. |
|00004550| 20 69 66 20 28 2a 63 29 | 20 7b 0a 20 20 20 20 66 | if (*c)| {. f|
|00004560| 6f 72 28 2a 63 3d 27 41 | 27 3b 20 2a 63 20 3c 3d |or(*c='A|'; *c <=|
|00004570| 20 27 5a 27 3b 20 28 2a | 63 29 2b 2b 29 20 7b 0a | 'Z'; (*|c)++) {.|
|00004580| 20 20 20 20 20 20 69 66 | 20 28 61 63 63 65 73 73 | if| (access|
|00004590| 28 62 75 66 2c 20 30 29 | 29 20 7b 0a 20 20 20 20 |(buf, 0)|) {. |
|000045a0| 20 20 20 20 72 65 74 75 | 72 6e 20 62 75 66 3b 0a | retu|rn buf;.|
|000045b0| 20 20 20 20 20 20 7d 0a | 20 20 20 20 7d 0a 20 20 | }.| }. |
|000045c0| 20 20 2a 63 20 3d 20 30 | 3b 0a 20 20 20 20 72 65 | *c = 0|;. re|
|000045d0| 74 75 72 6e 20 62 75 66 | 3b 0a 20 20 7d 65 6c 73 |turn buf|;. }els|
|000045e0| 65 7b 0a 20 20 20 20 72 | 65 74 75 72 6e 20 62 75 |e{. r|eturn bu|
|000045f0| 66 3b 0a 20 20 7d 0a 7d | 0a 7d 20 70 69 70 65 73 |f;. }.}|.} pipes|
|00004600| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00004610| 69 67 61 53 72 63 2f 55 | 55 43 50 2d 31 2e 31 35 |igaSrc/U|UCP-1.15|
|00004620| 44 2f 52 45 41 44 4d 45 | 00 00 00 00 00 00 00 00 |D/README|........|
|00004630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00004670| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00004680| 20 20 20 31 30 36 37 20 | 20 35 32 30 31 35 33 35 | 1067 | 5201535|
|00004690| 36 32 30 20 20 31 32 35 | 34 35 00 20 00 00 00 00 |620 125|45. ....|
|000046a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000046f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 33 2d 4d 41 59 2d 31 39 | 39 32 20 62 79 20 6a 77 |3-MAY-19|92 by jw|
|00004810| 40 6a 77 64 61 74 61 2e | 73 65 20 28 4a 6f 68 61 |@jwdata.|se (Joha|
|00004820| 6e 20 57 69 64 e9 6e 29 | 2e 0a 0a 4d 61 74 74 20 |n Wid.n)|...Matt |
|00004830| 44 69 6c 6c 6f 6e 27 73 | 20 55 55 43 50 20 66 6f |Dillon's| UUCP fo|
|00004840| 72 20 74 68 65 20 41 6d | 69 67 61 20 76 65 72 73 |r the Am|iga vers|
|00004850| 69 6f 6e 20 31 2e 31 35 | 44 2c 20 64 6f 65 73 20 |ion 1.15|D, does |
|00004860| 6e 6f 74 20 68 61 76 65 | 20 61 20 77 6f 72 6b 69 |not have| a worki|
|00004870| 6e 67 0a 70 6f 70 65 6e | 28 29 2e 20 54 68 65 20 |ng.popen|(). The |
|00004880| 66 6f 6c 6c 6f 77 69 6e | 67 20 63 6f 64 65 20 77 |followin|g code w|
|00004890| 61 73 20 70 6f 73 74 65 | 64 20 62 79 20 73 6f 6d |as poste|d by som|
|000048a0| 65 6f 6e 65 20 28 49 20 | 6c 6f 73 74 20 74 68 65 |eone (I |lost the|
|000048b0| 20 6e 61 6d 65 0a 75 6e | 66 6f 72 74 75 6e 61 74 | name.un|fortunat|
|000048c0| 65 6c 79 29 2e 20 49 20 | 68 61 76 65 20 66 69 78 |ely). I |have fix|
|000048d0| 65 64 20 61 20 62 75 67 | 20 69 6e 20 74 68 65 20 |ed a bug| in the |
|000048e0| 63 6f 64 65 2e 0a 0a 49 | 66 20 79 6f 75 20 64 6f |code...I|f you do|
|000048f0| 20 6e 6f 74 20 68 61 76 | 65 20 61 20 77 6f 72 6b | not hav|e a work|
|00004900| 69 6e 67 20 70 6f 70 65 | 6e 28 29 2c 20 6f 72 20 |ing pope|n(), or |
|00004910| 6d 6b 74 65 6d 70 28 29 | 20 74 68 65 6e 20 69 6e |mktemp()| then in|
|00004920| 73 74 61 6c 6c 20 74 68 | 65 73 65 20 66 69 6c 65 |stall th|ese file|
|00004930| 73 0a 69 6e 20 74 68 65 | 20 75 75 63 70 20 6c 69 |s.in the| uucp li|
|00004940| 62 72 61 72 79 20 73 6f | 75 72 63 65 20 64 69 72 |brary so|urce dir|
|00004950| 65 63 74 6f 72 79 20 61 | 6e 64 20 72 65 67 65 6e |ectory a|nd regen|
|00004960| 65 72 61 74 65 20 74 68 | 65 20 6c 69 62 72 61 72 |erate th|e librar|
|00004970| 79 2e 20 41 63 74 75 61 | 6c 6c 79 2c 0a 79 6f 75 |y. Actua|lly,.you|
|00004980| 20 64 6f 20 6e 6f 74 20 | 6e 65 65 64 20 74 6f 20 | do not |need to |
|00004990| 70 75 74 20 74 68 65 73 | 65 20 66 75 6e 63 74 69 |put thes|e functi|
|000049a0| 6f 6e 73 20 69 6e 74 6f | 20 74 68 65 20 75 75 63 |ons into| the uuc|
|000049b0| 70 20 6c 69 62 72 61 72 | 79 2e 20 54 68 65 20 69 |p librar|y. The i|
|000049c0| 6d 70 6f 72 74 61 6e 74 | 0a 74 68 69 6e 67 20 69 |mportant|.thing i|
|000049d0| 73 20 74 68 61 74 20 74 | 68 65 20 6d 65 74 61 6d |s that t|he metam|
|000049e0| 61 69 6c 20 63 6f 64 65 | 20 63 61 6e 20 6c 69 6e |ail code| can lin|
|000049f0| 6b 20 77 69 74 68 20 70 | 6f 70 65 6e 2e 6f 20 61 |k with p|open.o a|
|00004a00| 6e 64 20 6d 6b 74 65 6d | 70 2e 6f 2e 0a 0a 6d 65 |nd mktem|p.o...me|
|00004a10| 74 61 6d 61 69 6c 20 75 | 73 65 73 20 62 6f 74 68 |tamail u|ses both|
|00004a20| 20 70 6f 70 65 6e 28 29 | 20 61 6e 64 20 6d 6b 74 | popen()| and mkt|
|00004a30| 65 6d 70 28 29 2e 0a 20 | 20 20 20 46 49 4c 45 20 |emp().. | FILE |
|00004a40| 2a 63 75 72 72 65 6e 74 | 3b 0a 20 20 20 20 63 68 |*current|;. ch|
|00004a50| 61 72 20 2a 6e 61 6d 65 | 3b 0a 20 20 20 20 69 6e |ar *name|;. in|
|00004a60| 74 20 63 75 72 3b 0a 20 | 20 20 20 70 69 70 65 6d |t cur;. | pipem|
|00004a70| 6f 64 65 20 63 75 72 6d | 6f 64 65 3b 0a 23 69 66 |ode curm|ode;.#if|
|00004a80| 64 65 66 20 41 4d 49 47 | 41 0a 63 68 61 72 20 2a |def AMIG|A.char *|
|00004a90| 74 65 6d 70 6c 61 74 65 | 20 3d 20 22 54 3a 70 69 |template| = "T:pi|
|00004aa0| 58 58 58 58 58 58 22 3b | 0a 23 65 6e 64 69 66 0a |XXXXXX";|.#endif.|
|00004ab0| 20 20 20 20 2f 2a 0a 20 | 20 20 20 2a 2a 20 64 65 | /*. | ** de|
|00004ac0| 63 69 64 65 20 6f 6e 20 | 6d 6f 64 65 2e 0a 20 20 |cide on |mode.. |
|00004ad0| 20 20 2a 2f 0a 20 20 20 | 20 69 66 28 73 74 72 63 | */. | if(strc|
|00004ae0| 6d 70 28 6d 6f 64 65 2c | 22 72 22 29 20 3d 3d 20 |mp(mode,|"r") == |
|00004af0| 30 29 0a 20 20 20 20 20 | 20 20 20 63 75 72 6d 6f |0). | curmo|
|00004b00| 64 65 20 3d 20 72 65 61 | 64 69 6e 67 3b 0a 20 20 |de = rea|ding;. |
|00004b10| 20 20 65 6c 73 65 20 69 | 66 28 73 74 72 63 6d 70 | else i|f(strcmp|
|00004b20| 28 6d 6f 64 65 2c 22 77 | 22 29 20 3d 3d 20 30 29 |(mode,"w|") == 0)|
|00004b30| 0a 20 20 20 20 20 20 20 | 20 63 75 72 6d 6f 64 65 |. | curmode|
|00004b40| 20 3d 20 77 72 69 74 69 | 6e 67 3b 0a 20 20 20 20 | = writi|ng;. |
|00004b50| 65 6c 73 65 0a 20 20 20 | 20 20 20 20 20 72 65 74 |else. | ret|
|00004b60| 75 72 6e 20 4e 55 4c 4c | 3b 0a 20 20 20 20 2f 2a |urn NULL|;. /*|
|00004b70| 0a 20 20 20 20 2a 2a 20 | 67 65 74 20 61 20 6e 61 |. ** |get a na|
|00004b80| 6d 65 20 74 6f 20 75 73 | 65 2e 0a 20 20 20 20 2a |me to us|e.. *|
|00004b90| 2f 0a 23 69 66 64 65 66 | 20 41 4d 49 47 41 0a 20 |/.#ifdef| AMIGA. |
|00004ba0| 20 20 20 6e 61 6d 65 20 | 3d 20 6d 6b 74 65 6d 70 | name |= mktemp|
|00004bb0| 28 74 65 6d 70 6c 61 74 | 65 29 3b 0a 23 65 6c 73 |(templat|e);.#els|
|00004bc0| 65 0a 20 20 20 20 69 66 | 28 28 6e 61 6d 65 20 3d |e. if|((name =|
|00004bd0| 20 74 65 6d 70 6e 61 6d | 28 22 2e 22 2c 22 70 69 | tempnam|(".","pi|
|00004be0| 70 22 29 29 3d 3d 4e 55 | 4c 4c 29 0a 20 20 20 20 |p"))==NU|LL). |
|00004bf0| 20 20 20 20 72 65 74 75 | 72 6e 20 4e 55 4c 4c 3b | retu|rn NULL;|
|00004c00| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00004c10| 69 67 61 53 72 63 2f 67 | 65 74 66 69 6c 65 6e 61 |igaSrc/g|etfilena|
|00004c20| 6d 65 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |me.c....|........|
|00004c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00004c70| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00004c80| 20 20 20 31 37 34 33 20 | 20 35 32 30 31 35 33 35 | 1743 | 5201535|
|00004c90| 36 32 30 20 20 31 33 30 | 35 30 00 20 00 00 00 00 |620 130|50. ....|
|00004ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 2f 2a 20 41 73 6b 20 74 | 68 65 20 75 73 65 72 20 |/* Ask t|he user |
|00004e10| 74 6f 20 6e 61 6d 65 20 | 61 20 66 69 6c 65 20 69 |to name |a file i|
|00004e20| 6e 20 61 20 67 69 76 65 | 6e 20 66 6f 72 6d 61 74 |n a give|n format|
|00004e30| 2e 0a 20 2a 20 54 68 65 | 20 67 65 74 66 69 6c 65 |.. * The| getfile|
|00004e40| 6e 61 6d 65 20 70 72 6f | 67 72 61 6d 20 77 69 6c |name pro|gram wil|
|00004e50| 6c 20 61 73 6b 20 74 68 | 65 20 75 73 65 72 20 66 |l ask th|e user f|
|00004e60| 6f 72 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 61 |or the n|ame of a|
|00004e70| 0a 20 2a 20 66 69 6c 65 | 20 69 6e 20 74 68 65 20 |. * file| in the |
|00004e80| 73 70 65 63 69 66 69 65 | 64 20 66 6f 72 6d 61 74 |specifie|d format|
|00004e90| 2c 20 61 6e 64 20 77 69 | 6c 6c 20 63 6f 70 79 20 |, and wi|ll copy |
|00004ea0| 74 68 61 74 20 66 69 6c | 65 20 74 6f 20 74 68 65 |that fil|e to the|
|00004eb0| 0a 20 2a 20 66 69 6c 65 | 2d 6e 61 6d 65 20 67 69 |. * file|-name gi|
|00004ec0| 76 65 6e 20 61 73 20 74 | 68 65 20 73 65 63 6f 6e |ven as t|he secon|
|00004ed0| 64 20 61 72 67 75 6d 65 | 6e 74 2e 0a 20 2a 0a 20 |d argume|nt.. *. |
|00004ee0| 2a 20 55 73 61 67 65 3a | 0a 20 2a 20 20 67 65 74 |* Usage:|. * get|
|00004ef0| 66 69 6c 65 6e 61 6d 65 | 20 66 6f 72 6d 61 74 5f |filename| format_|
|00004f00| 6e 61 6d 65 20 74 65 6d | 70 5f 66 69 6c 65 5f 6e |name tem|p_file_n|
|00004f10| 61 6d 65 0a 20 2a 2f 0a | 0a 23 69 6e 63 6c 75 64 |ame. */.|.#includ|
|00004f20| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0a 23 69 6e 63 |e <stdio|.h>.#inc|
|00004f30| 6c 75 64 65 20 3c 73 74 | 72 69 6e 67 2e 68 3e 0a |lude <st|ring.h>.|
|00004f40| 0a 6d 61 69 6e 28 61 72 | 67 63 2c 20 61 72 67 76 |.main(ar|gc, argv|
|00004f50| 29 0a 69 6e 74 20 61 72 | 67 63 3b 0a 63 68 61 72 |).int ar|gc;.char|
|00004f60| 20 2a 2a 61 72 67 76 3b | 0a 7b 0a 20 20 20 20 63 | **argv;|.{. c|
|00004f70| 68 61 72 20 6c 69 6e 65 | 42 75 66 5b 32 30 30 5d |har line|Buf[200]|
|00004f80| 3b 0a 20 20 20 20 63 68 | 61 72 20 63 6f 6d 6d 61 |;. ch|ar comma|
|00004f90| 6e 64 5b 32 35 30 5d 3b | 0a 20 20 20 20 69 6e 74 |nd[250];|. int|
|00004fa0| 20 69 3b 0a 0a 20 20 20 | 20 69 66 20 28 61 72 67 | i;.. | if (arg|
|00004fb0| 63 20 21 3d 20 33 29 20 | 7b 0a 20 20 20 20 20 20 |c != 3) |{. |
|00004fc0| 20 20 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 | fprint|f(stderr|
|00004fd0| 2c 20 22 55 73 61 67 65 | 3a 20 25 73 20 66 6f 72 |, "Usage|: %s for|
|00004fe0| 6d 61 74 5f 6e 61 6d 65 | 20 74 65 6d 70 5f 66 69 |mat_name| temp_fi|
|00004ff0| 6c 65 5f 6e 61 6d 65 5c | 6e 22 2c 20 61 72 67 76 |le_name\|n", argv|
|00005000| 5b 30 5d 29 3b 0a 20 20 | 20 20 20 20 20 20 65 78 |[0]);. | ex|
|00005010| 69 74 28 31 30 29 3b 0a | 20 20 20 20 7d 0a 0a 20 |it(10);.| }.. |
|00005020| 20 20 20 70 72 69 6e 74 | 66 28 22 45 6e 74 65 72 | print|f("Enter|
|00005030| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 61 20 66 | the nam|e of a f|
|00005040| 69 6c 65 20 69 6e 20 27 | 25 73 27 20 66 6f 72 6d |ile in '|%s' form|
|00005050| 61 74 3a 20 22 2c 20 61 | 72 67 76 5b 31 5d 29 3b |at: ", a|rgv[1]);|
|00005060| 0a 20 20 20 20 66 67 65 | 74 73 28 6c 69 6e 65 42 |. fge|ts(lineB|
|00005070| 75 66 2c 20 73 69 7a 65 | 6f 66 28 6c 69 6e 65 42 |uf, size|of(lineB|
|00005080| 75 66 29 2c 20 73 74 64 | 69 6e 29 3b 0a 20 20 20 |uf), std|in);. |
|00005090| 20 69 20 3d 20 73 74 72 | 6c 65 6e 28 6c 69 6e 65 | i = str|len(line|
|000050a0| 42 75 66 29 3b 0a 20 20 | 20 20 69 66 20 28 69 20 |Buf);. | if (i |
|000050b0| 3e 20 30 20 26 26 20 6c | 69 6e 65 42 75 66 5b 69 |> 0 && l|ineBuf[i|
|000050c0| 20 2d 20 31 5d 20 3d 3d | 20 27 5c 6e 27 29 20 7b | - 1] ==| '\n') {|
|000050d0| 0a 20 20 20 20 20 20 20 | 20 6c 69 6e 65 42 75 66 |. | lineBuf|
|000050e0| 5b 69 20 2d 20 31 5d 20 | 3d 20 30 3b 0a 20 20 20 |[i - 1] |= 0;. |
|000050f0| 20 20 20 20 20 69 2d 2d | 3b 0a 20 20 20 20 7d 0a | i--|;. }.|
|00005100| 20 20 20 20 69 66 20 28 | 69 20 3d 3d 20 30 20 7c | if (|i == 0 ||
|00005110| 7c 20 61 63 63 65 73 73 | 28 6c 69 6e 65 42 75 66 || access|(lineBuf|
|00005120| 2c 20 34 29 29 20 7b 0a | 20 20 20 20 20 20 20 20 |, 4)) {.| |
|00005130| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00005140| 22 25 73 3a 20 55 6e 61 | 62 6c 65 20 74 6f 20 61 |"%s: Una|ble to a|
|00005150| 63 63 65 73 73 20 66 69 | 6c 65 20 27 25 73 27 5c |ccess fi|le '%s'\|
|00005160| 6e 22 2c 20 61 72 67 76 | 5b 30 5d 2c 20 6c 69 6e |n", argv|[0], lin|
|00005170| 65 42 75 66 29 3b 0a 20 | 20 20 20 20 20 20 20 65 |eBuf);. | e|
|00005180| 78 69 74 28 31 30 29 3b | 0a 20 20 20 20 7d 0a 0a |xit(10);|. }..|
|00005190| 20 20 20 20 73 70 72 69 | 6e 74 66 28 63 6f 6d 6d | spri|ntf(comm|
|000051a0| 61 6e 64 2c 20 22 43 6f | 70 79 20 25 73 20 25 73 |and, "Co|py %s %s|
|000051b0| 22 2c 20 6c 69 6e 65 42 | 75 66 2c 20 61 72 67 76 |", lineB|uf, argv|
|000051c0| 5b 32 5d 29 3b 0a 20 20 | 20 20 65 78 69 74 28 73 |[2]);. | exit(s|
|000051d0| 79 73 74 65 6d 28 63 6f | 6d 6d 61 6e 64 29 29 3b |ystem(co|mmand));|
|000051e0| 0a 7d 0a 29 3d 3d 4e 55 | 4c 4c 29 0a 20 20 20 20 |.}.)==NU|LL). |
|000051f0| 20 20 20 20 72 65 74 75 | 72 6e 20 4e 55 4c 4c 3b | retu|rn NULL;|
|00005200| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00005210| 69 67 61 53 72 63 2f 55 | 55 4c 49 42 2f 00 00 00 |igaSrc/U|ULIB/...|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 31 30 30 |.... 7|55 . 100|
|00005270| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00005280| 20 20 20 20 20 20 30 20 | 20 35 32 36 32 33 34 30 | 0 | 5262340|
|00005290| 33 35 32 20 20 31 31 32 | 31 35 00 20 00 00 00 00 |352 112|15. ....|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00005410| 69 67 61 53 72 63 2f 55 | 55 4c 49 42 2f 6d 61 69 |igaSrc/U|ULIB/mai|
|00005420| 6c 63 61 70 00 00 00 00 | 00 00 00 00 00 00 00 00 |lcap....|........|
|00005430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005460| 00 00 00 00 20 20 20 34 | 34 34 20 00 20 31 30 30 |.... 4|44 . 100|
|00005470| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00005480| 20 20 20 34 37 34 37 20 | 20 35 32 32 33 30 37 36 | 4747 | 5223076|
|00005490| 30 34 32 20 20 31 32 36 | 34 34 00 20 00 00 00 00 |042 126|44. ....|
|000054a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000054f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 23 20 43 6f 70 79 72 69 | 67 68 74 20 28 63 29 20 |# Copyri|ght (c) |
|00005610| 31 39 39 31 20 42 65 6c | 6c 20 43 6f 6d 6d 75 6e |1991 Bel|l Commun|
|00005620| 69 63 61 74 69 6f 6e 73 | 20 52 65 73 65 61 72 63 |ications| Researc|
|00005630| 68 2c 20 49 6e 63 2e 20 | 28 42 65 6c 6c 63 6f 72 |h, Inc. |(Bellcor|
|00005640| 65 29 0a 23 0a 23 20 50 | 65 72 6d 69 73 73 69 6f |e).#.# P|ermissio|
|00005650| 6e 20 74 6f 20 75 73 65 | 2c 20 63 6f 70 79 2c 20 |n to use|, copy, |
|00005660| 6d 6f 64 69 66 79 2c 20 | 61 6e 64 20 64 69 73 74 |modify, |and dist|
|00005670| 72 69 62 75 74 65 20 74 | 68 69 73 20 6d 61 74 65 |ribute t|his mate|
|00005680| 72 69 61 6c 0a 23 20 66 | 6f 72 20 61 6e 79 20 70 |rial.# f|or any p|
|00005690| 75 72 70 6f 73 65 20 61 | 6e 64 20 77 69 74 68 6f |urpose a|nd witho|
|000056a0| 75 74 20 66 65 65 20 69 | 73 20 68 65 72 65 62 79 |ut fee i|s hereby|
|000056b0| 20 67 72 61 6e 74 65 64 | 2c 20 70 72 6f 76 69 64 | granted|, provid|
|000056c0| 65 64 0a 23 20 74 68 61 | 74 20 74 68 65 20 61 62 |ed.# tha|t the ab|
|000056d0| 6f 76 65 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |ove copy|right no|
|000056e0| 74 69 63 65 20 61 6e 64 | 20 74 68 69 73 20 70 65 |tice and| this pe|
|000056f0| 72 6d 69 73 73 69 6f 6e | 20 6e 6f 74 69 63 65 0a |rmission| notice.|
|00005700| 23 20 61 70 70 65 61 72 | 20 69 6e 20 61 6c 6c 20 |# appear| in all |
|00005710| 63 6f 70 69 65 73 2c 20 | 61 6e 64 20 74 68 61 74 |copies, |and that|
|00005720| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 42 65 6c | the nam|e of Bel|
|00005730| 6c 63 6f 72 65 20 6e 6f | 74 20 62 65 0a 23 20 75 |lcore no|t be.# u|
|00005740| 73 65 64 20 69 6e 20 61 | 64 76 65 72 74 69 73 69 |sed in a|dvertisi|
|00005750| 6e 67 20 6f 72 20 70 75 | 62 6c 69 63 69 74 79 20 |ng or pu|blicity |
|00005760| 70 65 72 74 61 69 6e 69 | 6e 67 20 74 6f 20 74 68 |pertaini|ng to th|
|00005770| 69 73 0a 23 20 6d 61 74 | 65 72 69 61 6c 20 77 69 |is.# mat|erial wi|
|00005780| 74 68 6f 75 74 20 74 68 | 65 20 73 70 65 63 69 66 |thout th|e specif|
|00005790| 69 63 2c 20 70 72 69 6f | 72 20 77 72 69 74 74 65 |ic, prio|r writte|
|000057a0| 6e 20 70 65 72 6d 69 73 | 73 69 6f 6e 0a 23 20 6f |n permis|sion.# o|
|000057b0| 66 20 61 6e 20 61 75 74 | 68 6f 72 69 7a 65 64 20 |f an aut|horized |
|000057c0| 72 65 70 72 65 73 65 6e | 74 61 74 69 76 65 20 6f |represen|tative o|
|000057d0| 66 20 42 65 6c 6c 63 6f | 72 65 2e 20 20 42 45 4c |f Bellco|re. BEL|
|000057e0| 4c 43 4f 52 45 0a 23 20 | 4d 41 4b 45 53 20 4e 4f |LCORE.# |MAKES NO|
|000057f0| 20 52 45 50 52 45 53 45 | 4e 54 41 54 49 4f 4e 53 | REPRESE|NTATIONS|
|00005800| 20 41 42 4f 55 54 20 54 | 48 45 20 41 43 43 55 52 | ABOUT T|HE ACCUR|
|00005810| 41 43 59 20 4f 52 20 53 | 55 49 54 41 42 49 4c 49 |ACY OR S|UITABILI|
|00005820| 54 59 0a 23 20 4f 46 20 | 54 48 49 53 20 4d 41 54 |TY.# OF |THIS MAT|
|00005830| 45 52 49 41 4c 20 46 4f | 52 20 41 4e 59 20 50 55 |ERIAL FO|R ANY PU|
|00005840| 52 50 4f 53 45 2e 20 20 | 49 54 20 49 53 20 50 52 |RPOSE. |IT IS PR|
|00005850| 4f 56 49 44 45 44 20 22 | 41 53 20 49 53 22 2c 0a |OVIDED "|AS IS",.|
|00005860| 23 20 57 49 54 48 4f 55 | 54 20 41 4e 59 20 45 58 |# WITHOU|T ANY EX|
|00005870| 50 52 45 53 53 20 4f 52 | 20 49 4d 50 4c 49 45 44 |PRESS OR| IMPLIED|
|00005880| 20 57 41 52 52 41 4e 54 | 49 45 53 2e 0a 23 0a 23 | WARRANT|IES..#.#|
|00005890| 20 50 72 6f 74 6f 74 79 | 70 65 20 4d 61 69 6c 63 | Prototy|pe Mailc|
|000058a0| 61 70 20 66 69 6c 65 0a | 23 20 4e 6f 74 65 20 74 |ap file.|# Note t|
|000058b0| 68 61 74 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |hat supp|ort for |
|000058c0| 74 65 78 74 20 26 20 6d | 75 6c 74 69 70 61 72 74 |text & m|ultipart|
|000058d0| 20 61 72 65 20 22 62 75 | 69 6c 74 20 69 6e 22 20 | are "bu|ilt in" |
|000058e0| 74 6f 20 6d 65 74 61 6d | 61 69 6c 2c 0a 23 20 61 |to metam|ail,.# a|
|000058f0| 73 20 61 72 65 20 72 75 | 64 69 6d 65 6e 74 61 72 |s are ru|dimentar|
|00005900| 79 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 6d 65 |y suppor|t for me|
|00005910| 73 73 61 67 65 2c 20 61 | 6e 64 20 61 70 70 6c 69 |ssage, a|nd appli|
|00005920| 63 61 74 69 6f 6e 2e 0a | 23 20 48 6f 77 65 76 65 |cation..|# Howeve|
|00005930| 72 2c 20 61 6e 79 20 6f | 66 20 74 68 65 73 65 20 |r, any o|f these |
|00005940| 6d 61 79 20 62 65 20 6f | 76 65 72 72 69 64 64 65 |may be o|verridde|
|00005950| 6e 20 69 6e 20 6d 61 69 | 6c 63 61 70 2e 0a 23 0a |n in mai|lcap..#.|
|00005960| 23 20 4e 6f 74 65 20 74 | 68 61 74 20 75 73 65 72 |# Note t|hat user|
|00005970| 73 20 6d 61 79 20 6f 76 | 65 72 72 69 64 65 20 6f |s may ov|erride o|
|00005980| 72 20 65 78 74 65 6e 64 | 20 74 68 69 73 20 77 69 |r extend| this wi|
|00005990| 74 68 20 61 20 2e 6d 61 | 69 6c 63 61 70 0a 23 20 |th a .ma|ilcap.# |
|000059a0| 66 69 6c 65 20 69 6e 20 | 74 68 65 69 72 20 6f 77 |file in |their ow|
|000059b0| 6e 20 64 69 72 65 63 74 | 6f 72 79 2e 20 20 48 6f |n direct|ory. Ho|
|000059c0| 77 65 76 65 72 2c 20 74 | 68 65 72 65 20 69 73 20 |wever, t|here is |
|000059d0| 4e 4f 20 4e 45 45 44 0a | 23 20 66 6f 72 20 74 68 |NO NEED.|# for th|
|000059e0| 65 6d 20 74 6f 20 63 6f | 70 79 20 65 6e 74 72 69 |em to co|py entri|
|000059f0| 65 73 20 66 72 6f 6d 20 | 74 68 69 73 20 66 69 6c |es from |this fil|
|00005a00| 65 2c 20 61 73 20 6d 65 | 74 61 6d 61 69 6c 20 77 |e, as me|tamail w|
|00005a10| 69 6c 6c 0a 23 20 70 69 | 63 6b 20 75 70 20 65 6e |ill.# pi|ck up en|
|00005a20| 74 72 69 65 73 20 66 72 | 6f 6d 20 62 6f 74 68 20 |tries fr|om both |
|00005a30| 74 68 65 20 73 79 73 74 | 65 6d 20 61 6e 64 20 70 |the syst|em and p|
|00005a40| 65 72 73 6f 6e 61 6c 20 | 6d 61 69 6c 63 61 70 20 |ersonal |mailcap |
|00005a50| 66 69 6c 65 73 2e 0a 23 | 0a 23 20 61 75 64 69 6f |files..#|.# audio|
|00005a60| 2f 62 61 73 69 63 20 69 | 73 20 38 20 62 69 74 20 |/basic i|s 8 bit |
|00005a70| 70 65 72 20 73 61 6d 70 | 6c 65 2c 20 38 30 30 30 |per samp|le, 8000|
|00005a80| 20 73 61 6d 70 6c 65 73 | 2f 73 2c 20 75 2d 6c 61 | samples|/s, u-la|
|00005a90| 77 20 28 6e 6f 74 20 6c | 69 6e 65 61 72 29 20 74 |w (not l|inear) t|
|00005aa0| 72 61 6e 73 66 65 72 0a | 23 20 66 75 6e 63 74 69 |ransfer.|# functi|
|00005ab0| 6f 6e 2e 20 54 68 65 20 | 68 69 67 68 65 73 74 20 |on. The |highest |
|00005ac0| 62 69 74 20 69 73 20 61 | 20 73 69 67 6e 20 62 69 |bit is a| sign bi|
|00005ad0| 74 2c 20 61 73 20 72 65 | 71 75 69 72 65 64 20 62 |t, as re|quired b|
|00005ae0| 79 20 74 68 65 20 41 6d | 69 67 61 2e 0a 61 75 64 |y the Am|iga..aud|
|00005af0| 69 6f 2f 62 61 73 69 63 | 3b 20 70 6c 61 79 55 6c |io/basic|; playUl|
|00005b00| 61 77 53 6f 75 6e 64 20 | 25 73 3b 20 6c 61 62 65 |awSound |%s; labe|
|00005b10| 6c 3d 22 41 6e 20 61 75 | 64 69 6f 20 66 72 61 67 |l="An au|dio frag|
|00005b20| 6d 65 6e 74 22 3b 5c 0a | 20 20 20 20 20 20 20 20 |ment";\.| |
|00005b30| 63 6f 6d 70 6f 73 65 3d | 22 73 76 78 54 6f 55 6c |compose=|"svxToUl|
|00005b40| 61 77 20 25 73 22 0a 69 | 6d 61 67 65 2f 67 69 66 |aw %s".i|mage/gif|
|00005b50| 3b 20 47 49 46 5f 76 69 | 65 77 20 25 73 20 54 49 |; GIF_vi|ew %s TI|
|00005b60| 4d 45 20 33 30 30 30 30 | 3b 20 6c 61 62 65 6c 3d |ME 30000|; label=|
|00005b70| 22 41 20 47 49 46 20 49 | 6d 61 67 65 22 3b 20 63 |"A GIF I|mage"; c|
|00005b80| 6f 6d 70 6f 73 65 3d 22 | 69 6c 62 6d 54 6f 47 49 |ompose="|ilbmToGI|
|00005b90| 46 20 25 73 22 0a 69 6d | 61 67 65 2f 6a 70 65 67 |F %s".im|age/jpeg|
|00005ba0| 3b 20 73 68 6f 77 4a 50 | 45 47 20 25 73 3b 20 6c |; showJP|EG %s; l|
|00005bb0| 61 62 65 6c 3d 22 41 20 | 4a 50 45 47 20 49 6d 61 |abel="A |JPEG Ima|
|00005bc0| 67 65 22 3b 20 63 6f 6d | 70 6f 73 65 3d 22 67 65 |ge"; com|pose="ge|
|00005bd0| 74 66 69 6c 65 6e 61 6d | 65 20 4a 50 45 47 20 25 |tfilenam|e JPEG %|
|00005be0| 73 22 0a 69 6d 61 67 65 | 2f 70 62 6d 3b 20 73 68 |s".image|/pbm; sh|
|00005bf0| 6f 77 50 42 4d 20 25 73 | 0a 23 69 6d 61 67 65 2f |owPBM %s|.#image/|
|00005c00| 70 67 6d 3b 20 70 70 6d | 74 6f 69 6c 62 6d 20 2d |pgm; ppm|toilbm -|
|00005c10| 68 61 6d 69 66 20 7c 20 | 66 61 6b 65 50 69 70 65 |hamif | |fakePipe|
|00005c20| 20 4d 6f 73 74 72 61 0a | 69 6d 61 67 65 2f 70 67 | Mostra.|image/pg|
|00005c30| 6d 3b 20 73 68 6f 77 50 | 47 4d 20 25 73 0a 23 69 |m; showP|GM %s.#i|
|00005c40| 6d 61 67 65 2f 78 2d 78 | 62 69 74 6d 61 70 3b 20 |mage/x-x|bitmap; |
|00005c50| 78 62 6d 74 6f 70 62 6d | 20 7c 20 70 70 6d 74 6f |xbmtopbm| | ppmto|
|00005c60| 69 6c 62 6d 20 7c 20 66 | 61 6b 65 50 69 70 65 20 |ilbm | f|akePipe |
|00005c70| 4d 6f 73 74 72 61 0a 69 | 6d 61 67 65 2f 78 2d 78 |Mostra.i|mage/x-x|
|00005c80| 62 69 74 6d 61 70 3b 20 | 73 68 6f 77 58 42 69 74 |bitmap; |showXBit|
|00005c90| 6d 61 70 20 25 73 0a 23 | 69 6d 61 67 65 2f 78 2d |map %s.#|image/x-|
|00005ca0| 78 77 64 3b 20 78 77 64 | 74 6f 70 6e 6d 20 20 7c |xwd; xwd|topnm ||
|00005cb0| 20 70 70 6d 74 6f 69 6c | 62 6d 20 2d 68 61 6d 69 | ppmtoil|bm -hami|
|00005cc0| 66 20 7c 20 66 61 6b 65 | 50 69 70 65 20 4d 6f 73 |f | fake|Pipe Mos|
|00005cd0| 74 72 61 0a 69 6d 61 67 | 65 2f 78 2d 78 77 64 3b |tra.imag|e/x-xwd;|
|00005ce0| 20 73 68 6f 77 58 57 44 | 20 25 73 0a 69 6d 61 67 | showXWD| %s.imag|
|00005cf0| 65 2f 78 77 64 3b 20 73 | 68 6f 77 58 57 44 20 25 |e/xwd; s|howXWD %|
|00005d00| 73 0a 6d 65 73 73 61 67 | 65 2f 70 61 72 74 69 61 |s.messag|e/partia|
|00005d10| 6c 3b 20 73 68 6f 77 70 | 61 72 74 69 61 6c 20 25 |l; showp|artial %|
|00005d20| 73 20 25 7b 69 64 7d 20 | 25 7b 6e 75 6d 62 65 72 |s %{id} |%{number|
|00005d30| 7d 20 25 7b 74 6f 74 61 | 6c 7d 0a 23 74 65 78 74 |} %{tota|l}.#text|
|00005d40| 2f 70 6c 61 69 6e 3b 20 | 4c 65 73 73 20 25 73 0a |/plain; |Less %s.|
|00005d50| 74 65 78 74 2f 70 6c 61 | 69 6e 3b 20 4c 65 67 67 |text/pla|in; Legg|
|00005d60| 69 20 25 73 20 50 4f 52 | 54 4e 41 4d 45 20 4c 45 |i %s POR|TNAME LE|
|00005d70| 47 47 49 4d 49 4d 45 0a | 23 74 65 78 74 2f 72 69 |GGIMIME.|#text/ri|
|00005d80| 63 68 74 65 78 74 3b 20 | 72 69 63 68 74 65 78 74 |chtext; |richtext|
|00005d90| 20 2d 66 20 25 73 20 7c | 20 4c 65 73 73 0a 74 65 | -f %s || Less.te|
|00005da0| 78 74 2f 72 69 63 68 74 | 65 78 74 3b 20 73 68 6f |xt/richt|ext; sho|
|00005db0| 77 52 69 63 68 74 65 78 | 74 20 25 73 0a 23 78 2d |wRichtex|t %s.#x-|
|00005dc0| 62 65 32 3b 20 65 7a 76 | 69 65 77 20 25 73 20 7c |be2; ezv|iew %s ||
|00005dd0| 20 4c 65 73 73 0a 78 2d | 62 65 32 3b 20 73 68 6f | Less.x-|be2; sho|
|00005de0| 77 45 7a 20 25 73 0a 23 | 20 49 66 20 79 6f 75 20 |wEz %s.#| If you |
|00005df0| 68 61 76 65 20 61 6e 20 | 69 6e 74 65 72 61 63 74 |have an |interact|
|00005e00| 69 76 65 20 50 6f 73 74 | 73 63 72 69 70 74 20 69 |ive Post|script i|
|00005e10| 6e 74 65 72 70 72 65 74 | 65 72 2c 20 79 6f 75 20 |nterpret|er, you |
|00005e20| 73 68 6f 75 6c 64 20 74 | 68 69 6e 6b 20 63 61 72 |should t|hink car|
|00005e30| 65 66 75 6c 6c 79 0a 23 | 20 62 65 66 6f 72 65 20 |efully.#| before |
|00005e40| 72 65 70 6c 61 63 69 6e | 67 20 6c 70 72 20 77 69 |replacin|g lpr wi|
|00005e50| 74 68 20 69 74 20 69 6e | 20 74 68 65 20 66 6f 6c |th it in| the fol|
|00005e60| 6c 6f 77 69 6e 67 20 6c | 69 6e 65 2c 20 62 65 63 |lowing l|ine, bec|
|00005e70| 61 75 73 65 20 50 6f 73 | 74 53 63 72 69 70 74 0a |ause Pos|tScript.|
|00005e80| 23 20 63 61 6e 20 62 65 | 20 61 6e 20 65 6e 6f 72 |# can be| an enor|
|00005e90| 6d 6f 75 73 20 73 65 63 | 75 72 69 74 79 20 68 6f |mous sec|urity ho|
|00005ea0| 6c 65 2e 20 20 49 74 20 | 69 73 20 52 45 4c 41 54 |le. It |is RELAT|
|00005eb0| 49 56 45 4c 59 20 68 61 | 72 6d 6c 65 73 73 0a 23 |IVELY ha|rmless.#|
|00005ec0| 20 77 68 65 6e 20 73 65 | 6e 74 20 74 6f 20 74 68 | when se|nt to th|
|00005ed0| 65 20 70 72 69 6e 74 65 | 72 2e 2e 2e 0a 23 61 70 |e printe|r....#ap|
|00005ee0| 70 6c 69 63 61 74 69 6f | 6e 2f 70 6f 73 74 73 63 |plicatio|n/postsc|
|00005ef0| 72 69 70 74 20 3b 20 6c | 70 72 20 25 73 20 3b 20 |ript ; l|pr %s ; |
|00005f00| 6c 61 62 65 6c 3d 22 41 | 20 50 6f 73 74 73 63 72 |label="A| Postscr|
|00005f10| 69 70 74 20 46 69 6c 65 | 22 3b 5c 0a 23 20 20 20 |ipt File|";\.# |
|00005f20| 20 20 20 20 20 63 6f 6d | 70 6f 73 65 3d 22 67 65 | com|pose="ge|
|00005f30| 74 66 69 6c 65 6e 61 6d | 65 20 50 6f 73 74 73 63 |tfilenam|e Postsc|
|00005f40| 72 69 70 74 20 25 73 22 | 0a 61 70 70 6c 69 63 61 |ript %s"|.applica|
|00005f50| 74 69 6f 6e 2f 70 6f 73 | 74 73 63 72 69 70 74 3b |tion/pos|tscript;|
|00005f60| 20 70 6f 73 74 20 73 3a | 69 6e 69 74 2e 70 73 20 | post s:|init.ps |
|00005f70| 25 73 20 73 63 72 65 65 | 6e 20 73 69 7a 65 20 79 |%s scree|n size y|
|00005f80| 31 31 30 30 78 6f 37 30 | 79 6f 38 30 64 31 30 30 |1100xo70|yo80d100|
|00005f90| 62 20 6d 65 6d 20 66 31 | 30 30 30 30 30 3b 5c 0a |b mem f1|00000;\.|
|00005fa0| 20 20 20 20 20 20 20 20 | 6c 61 62 65 6c 3d 22 41 | |label="A|
|00005fb0| 20 50 6f 73 74 73 63 72 | 69 70 74 20 46 69 6c 65 | Postscr|ipt File|
|00005fc0| 22 3b 20 63 6f 6d 70 6f | 73 65 3d 22 67 65 74 66 |"; compo|se="getf|
|00005fd0| 69 6c 65 6e 61 6d 65 20 | 50 6f 73 74 73 63 72 69 |ilename |Postscri|
|00005fe0| 70 74 20 25 73 22 0a 61 | 6e 64 29 3b 0a 20 20 20 |pt %s".a|nd);. |
|00005ff0| 20 72 65 74 75 72 6e 20 | 72 76 61 6c 3b 0a 7d 0a | return |rval;.}.|
|00006000| 63 6f 6e 74 72 69 62 2f | 61 6d 69 67 61 2f 41 6d |contrib/|amiga/Am|
|00006010| 69 67 61 53 72 63 2f 55 | 55 4c 49 42 2f 43 6f 6e |igaSrc/U|ULIB/Con|
|00006020| 66 69 67 2e 73 61 6d 70 | 6c 65 00 00 00 00 00 00 |fig.samp|le......|
|00006030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 31 30 30 |.... 6|44 . 100|
|00006070| 30 33 20 00 20 31 30 30 | 30 33 20 00 20 20 20 20 |03 . 100|03 . |
|00006080| 20 20 20 35 34 32 36 20 | 20 35 32 30 31 35 33 35 | 5426 | 5201535|
|00006090| 36 32 31 20 20 31 33 37 | 31 37 00 20 00 00 00 00 |621 137|17. ....|
|000060a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000060f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000061f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006200| 0a 23 20 20 20 43 6f 6e | 66 69 67 20 66 69 6c 65 |.# Con|fig file|
|00006210| 20 73 61 6d 70 6c 65 0a | 23 0a 23 20 20 20 43 6f | sample.|#.# Co|
|00006220| 6e 66 69 67 20 6d 61 79 | 20 65 78 69 73 74 20 61 |nfig may| exist a|
|00006230| 73 20 27 55 55 4c 49 42 | 3a 43 6f 6e 66 69 67 27 |s 'UULIB|:Config'|
|00006240| 20 6f 72 20 27 53 3a 55 | 55 43 6f 6e 66 69 67 27 | or 'S:U|UConfig'|
|00006250| 2c 20 62 75 74 20 6e 6f | 74 20 69 6e 0a 23 20 20 |, but no|t in.# |
|00006260| 20 61 6e 79 20 6f 76 65 | 72 69 64 65 20 64 69 72 | any ove|ride dir|
|00006270| 65 63 74 6f 72 79 20 66 | 6f 72 20 55 55 4c 49 42 |ectory f|or UULIB|
|00006280| 3a 20 73 69 6e 63 65 20 | 74 68 61 74 20 69 73 20 |: since |that is |
|00006290| 6c 69 73 74 65 64 20 69 | 6e 20 74 68 65 20 63 6f |listed i|n the co|
|000062a0| 6e 66 69 67 0a 23 20 20 | 20 66 69 6c 65 20 61 6e |nfig.# | file an|
|000062b0| 64 20 77 65 20 68 61 76 | 65 20 74 6f 20 66 69 6e |d we hav|e to fin|
|000062c0| 64 20 69 74 20 66 69 72 | 73 74 2c 20 65 68 3f 0a |d it fir|st, eh?.|
|000062d0| 23 0a 23 20 20 20 6e 6f | 74 65 2c 20 69 6e 20 66 |#.# no|te, in f|
|000062e0| 69 72 73 74 20 6c 69 73 | 74 20 4e 65 77 73 45 64 |irst lis|t NewsEd|
|000062f0| 69 74 6f 72 20 69 73 20 | 6e 65 77 0a 0a 4e 6f 64 |itor is |new..Nod|
|00006300| 65 4e 61 6d 65 20 20 20 | 20 20 20 66 6f 6f 0a 55 |eName | foo.U|
|00006310| 73 65 72 4e 61 6d 65 20 | 20 20 20 20 20 6a 64 0a |serName | jd.|
|00006320| 52 65 61 6c 4e 61 6d 65 | 20 20 20 20 20 20 4a 6f |RealName| Jo|
|00006330| 68 6e 20 44 6f 65 0a 44 | 65 62 75 67 20 20 20 20 |hn Doe.D|ebug |
|00006340| 20 20 20 20 20 30 0a 0a | 23 20 20 20 57 41 52 4e | 0..|# WARN|
|00006350| 49 4e 47 2c 20 4e 65 77 | 73 46 65 65 64 20 69 73 |ING, New|sFeed is|
|00006360| 20 6f 62 73 6f 6c 65 74 | 65 2e 20 20 49 66 20 74 | obsolet|e. If t|
|00006370| 68 69 73 20 65 6e 74 72 | 79 20 65 78 69 73 74 73 |his entr|y exists|
|00006380| 20 61 6e 64 20 74 68 65 | 20 55 55 4c 49 42 3a 53 | and the| UULIB:S|
|00006390| 79 73 0a 23 20 20 20 66 | 69 6c 65 20 64 6f 65 73 |ys.# f|ile does|
|000063a0| 20 6e 6f 74 2c 20 61 20 | 55 55 4c 49 42 3a 53 79 | not, a |UULIB:Sy|
|000063b0| 73 20 66 69 6c 65 20 77 | 69 6c 6c 20 62 65 20 63 |s file w|ill be c|
|000063c0| 72 65 61 74 65 64 20 61 | 6e 64 20 6d 61 69 6c 20 |reated a|nd mail |
|000063d0| 73 65 6e 74 20 74 6f 20 | 70 6f 73 74 6d 61 73 74 |sent to |postmast|
|000063e0| 65 72 0a 23 20 20 20 61 | 73 6b 69 6e 67 20 79 6f |er.# a|sking yo|
|000063f0| 75 20 74 6f 20 72 65 61 | 64 20 74 68 65 20 4e 65 |u to rea|d the Ne|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.